Skip to content

Commit 4cc9b30

Browse files
committed
The testWindowTimespan() is time-sensitive
The `FluxAggregatorMessageHandlerTests.testWindowTimespan()` relies on the time-based window function of `100` millis. Looks like a delay of `Thread.sleep(20)` may cause a resources race condition and window is released only with one item. * Disable `testWindowTimespan()` since there is no guarantee with what timing settings it is going to work stably **Cherry-pick to `5.5.x`**
1 parent 4203a23 commit 4cc9b30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import java.util.stream.Collectors;
2626
import java.util.stream.IntStream;
2727

28+
import org.junit.jupiter.api.Disabled;
2829
import org.junit.jupiter.api.Test;
2930

3031
import org.springframework.integration.IntegrationMessageHeaderAccessor;
@@ -157,6 +158,7 @@ void testCustomCombineFunction() {
157158
}
158159

159160
@Test
161+
@Disabled("Time-sensitive")
160162
void testWindowTimespan() {
161163
QueueChannel resultChannel = new QueueChannel();
162164
FluxAggregatorMessageHandler fluxAggregatorMessageHandler = new FluxAggregatorMessageHandler();

0 commit comments

Comments
 (0)