Skip to content

Commit 91e1b06

Browse files
authored
Merge pull request #38129 from scwhittle/flaky_view
Fix flaky ViewTest which would fail encoding null value
2 parents b296b40 + bb06d9b commit 91e1b06

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • sdks/java/core/src/test/java/org/apache/beam/sdk/transforms

sdks/java/core/src/test/java/org/apache/beam/sdk/transforms/ViewTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ public void testTriggeredLatestSingleton() {
285285
Window.<Long>into(FixedWindows.of(Duration.standardSeconds(1)))
286286
.triggering(Repeatedly.forever(AfterProcessingTime.pastFirstElementInPane()))
287287
.withAllowedLateness(Duration.ZERO)
288+
.withOnTimeBehavior(Window.OnTimeBehavior.FIRE_IF_NON_EMPTY)
288289
.discardingFiredPanes())
289290
.apply(Reify.timestamps())
290291
.apply(Combine.globally(Latest.<Long>combineFn()).withoutDefaults().asSingletonView());

0 commit comments

Comments
 (0)