Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

Commit 9b96b97

Browse files
committed
Improve LateDataDroppingDoFnRunner to include reiteration.
1 parent 3a6dde7 commit 9b96b97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/src/test/java/com/google/cloud/dataflow/sdk/util/LateDataDroppingDoFnRunnerTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ public void testLateDataFilter() throws Exception {
7777
createDatum(18, 18L));
7878
assertThat(expected, containsInAnyOrder(Iterables.toArray(actual, WindowedValue.class)));
7979
assertEquals(1, droppedDueToLateness.sum);
80+
// Ensure that reiterating returns the same results and doesn't increment the counter again.
81+
assertThat(expected, containsInAnyOrder(Iterables.toArray(actual, WindowedValue.class)));
82+
assertEquals(1, droppedDueToLateness.sum);
8083
}
8184

8285
private <T> WindowedValue<T> createDatum(T element, long timestampMillis) {
@@ -112,4 +115,3 @@ public String getName() {
112115
}
113116
}
114117
}
115-

0 commit comments

Comments
 (0)