Skip to content

Commit e24a2a2

Browse files
authored
Fix flaky AsyncBatchWriteHandlerTest.correctlyLimitConcurrency (#36975)
1 parent fc673aa commit e24a2a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdks/java/io/amazon-web-services2/src/test/java/org/apache/beam/sdk/io/aws2/common/AsyncBatchWriteHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public void correctlyLimitConcurrency() throws Throwable {
230230
nextResults.complete(emptyList());
231231

232232
handler.waitForCompletion();
233-
assertThat(future).isDone();
233+
eventually(5, () -> assertThat(future).isDone());
234234
}
235235

236236
static class SubmitFn<T, V> implements BiFunction<String, List<T>, CompletableFuture<List<V>>> {

0 commit comments

Comments
 (0)