Skip to content

Commit 1eec579

Browse files
artembilanspring-builds
authored andcommitted
RetryingTest for FlowServiceTests.noDoubleStartForEndpoints
The assertion for timeout between two messages is not robust due to race condition for CPU resources (cherry picked from commit f5a9e8f)
1 parent 886831b commit 1eec579

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • spring-integration-core/src/test/java/org/springframework/integration/dsl/flowservices

spring-integration-core/src/test/java/org/springframework/integration/dsl/flowservices/FlowServiceTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import org.jetbrains.annotations.NotNull;
2727
import org.junit.jupiter.api.Test;
28+
import org.junitpioneer.jupiter.RetryingTest;
2829

2930
import org.springframework.aop.framework.Advised;
3031
import org.springframework.aop.support.AopUtils;
@@ -129,7 +130,7 @@ public void testGatewayExplicitReplyChannel() {
129130
@Qualifier("delaysBetweenPollsOutput")
130131
private PollableChannel delaysBetweenPollsOutput;
131132

132-
@Test
133+
@RetryingTest(10)
133134
public void noDoubleStartForEndpoints() {
134135
this.delaysBetweenPollsInput.send(new GenericMessage<>("A,B"));
135136

0 commit comments

Comments
 (0)