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`**
This commit is contained in:
Artem Bilan
2022-05-23 12:08:03 -04:00
parent 5a42d7137a
commit ab6060fb2d

View File

@@ -25,6 +25,7 @@ import java.util.concurrent.Executors;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.integration.IntegrationMessageHeaderAccessor;
@@ -157,6 +158,7 @@ class FluxAggregatorMessageHandlerTests {
}
@Test
@Disabled("Time-sensitive")
void testWindowTimespan() {
QueueChannel resultChannel = new QueueChannel();
FluxAggregatorMessageHandler fluxAggregatorMessageHandler = new FluxAggregatorMessageHandler();