Skip to content

Commit

Permalink
fix(test): Fix flake in PubsubLiteSourceReaderTest (#44)
Browse files Browse the repository at this point in the history
* fix: Fix flake in PubsubLiteSourceReaderTest

* formatting
  • Loading branch information
palmere-google authored Jul 29, 2021
1 parent 1c3a011 commit 09871f3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ public void testReader() throws Exception {
assertThat(reader.pollNext(output)).isEqualTo(InputStatus.NOTHING_AVAILABLE);

reader.notifyNoMoreSplits();
while (reader.pollNext(output) != InputStatus.END_OF_INPUT) {
assertThat(output.getEmittedRecords()).hasSize(6);
}
assertThat(reader.pollNext(output)).isEqualTo(InputStatus.END_OF_INPUT);
assertThat(output.getEmittedRecords()).containsExactly("0", "1", "2", "3", "5", "7");
}
Expand Down

0 comments on commit 09871f3

Please sign in to comment.