Skip to content

Commit 886831b

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 a42bbe1 commit 886831b

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

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

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

0 commit comments

Comments
 (0)