Skip to content

Commit 9d6ae16

Browse files
committed
[hotfix] Fix test coverage of WatermarkAlignmentITCase
Previously it has actually never tested anything as watermark alignment not been actually used.
1 parent 2ee862e commit 9d6ae16

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: flink-tests/src/test/java/org/apache/flink/test/streaming/api/datastream/WatermarkAlignmentITCase.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,14 @@ void testTaskFinishedWithWatermarkAlignmentExecution() throws Exception {
5757
(SerializableTimestampAssigner<Long>)
5858
(aLong, l) -> aLong)
5959
.withWatermarkAlignment(
60-
"g1", Duration.ofMillis(10), Duration.ofSeconds(2)),
60+
"g1", Duration.ofMillis(10), Duration.ofMillis(1)),
6161
"Sequence Source")
62-
.filter((FilterFunction<Long>) aLong -> true);
62+
.filter(
63+
(FilterFunction<Long>)
64+
aLong -> {
65+
Thread.sleep(10);
66+
return true;
67+
});
6368

6469
// Execute the stream and collect the results
6570
final List<Long> result = stream.executeAndCollect(101);

0 commit comments

Comments
 (0)