Skip to content

Commit ac7da1d

Browse files
artembilanspring-builds
authored andcommitted
RetryingTest for FluxAggregatorMessageHandlerTests
Looks like timing is a bottleneck in async tests. Making it `@RetryingTest(10)` might give more chances for CPU to deal with our test execution (cherry picked from commit 3cc015b)
1 parent 47b90a6 commit ac7da1d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spring-integration-core/src/test/java/org/springframework/integration/aggregator/FluxAggregatorMessageHandlerTests.java

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

2727
import org.assertj.core.api.InstanceOfAssertFactories;
2828
import org.junit.jupiter.api.Test;
29+
import org.junitpioneer.jupiter.RetryingTest;
2930
import reactor.core.publisher.Flux;
3031
import reactor.test.StepVerifier;
3132

@@ -155,7 +156,7 @@ void testCustomCombineFunction() {
155156
fluxAggregatorMessageHandler.stop();
156157
}
157158

158-
@Test
159+
@RetryingTest(10)
159160
void testWindowTimespan() {
160161
QueueChannel resultChannel = new QueueChannel();
161162
FluxAggregatorMessageHandler fluxAggregatorMessageHandler = new FluxAggregatorMessageHandler();

0 commit comments

Comments
 (0)