From b284f92fb3bf0d4b358cf58af81314732ee1f666 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Fri, 18 Oct 2024 17:21:36 +0200 Subject: [PATCH] Disable flaky tests --- .../statemachine/buildtests/EndSmokeTests.java | 4 +++- .../statemachine/action/StateDoActivityActionTests.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spring-statemachine-build-tests/src/test/java/org/springframework/statemachine/buildtests/EndSmokeTests.java b/spring-statemachine-build-tests/src/test/java/org/springframework/statemachine/buildtests/EndSmokeTests.java index 78d2a6dc..868d29c7 100644 --- a/spring-statemachine-build-tests/src/test/java/org/springframework/statemachine/buildtests/EndSmokeTests.java +++ b/spring-statemachine-build-tests/src/test/java/org/springframework/statemachine/buildtests/EndSmokeTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2020 the original author or authors. + * Copyright 2016-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package org.springframework.statemachine.buildtests; import static org.assertj.core.api.Assertions.assertThat; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; @@ -33,6 +34,7 @@ import org.springframework.statemachine.uml.UmlStateMachineModelFactory; public class EndSmokeTests extends AbstractBuildTests { + @Disabled("This test fails intermittently") // FIXME check and fix intermittent failure @Test @SuppressWarnings("unchecked") public void testEndState() throws Exception { diff --git a/spring-statemachine-core/src/test/java/org/springframework/statemachine/action/StateDoActivityActionTests.java b/spring-statemachine-core/src/test/java/org/springframework/statemachine/action/StateDoActivityActionTests.java index bee848af..85976926 100644 --- a/spring-statemachine-core/src/test/java/org/springframework/statemachine/action/StateDoActivityActionTests.java +++ b/spring-statemachine-core/src/test/java/org/springframework/statemachine/action/StateDoActivityActionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2020 the original author or authors. + * Copyright 2016-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import static org.springframework.statemachine.TestUtils.resolveMachine; import java.util.concurrent.TimeUnit; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; @@ -291,6 +292,7 @@ public class StateDoActivityActionTests extends AbstractStateMachineTests { assertThat(testActionS2.interruptedLatch.await(2, TimeUnit.SECONDS)).isTrue(); } + @Disabled("This test fails intermittently") // FIXME check and fix intermittent failure @Test public void testStateDoActionNotCancelledWithConfigTimeout() throws Exception { context.register(Config6.class);