amogh-jahagirdar commented on code in PR #7372:
URL: https://github.com/apache/iceberg/pull/7372#discussion_r1170695331
##########
core/src/test/java/org/apache/iceberg/util/TestParallelIterable.java:
##########
@@ -60,9 +62,12 @@ public CloseableIterator<Integer> iterator() {
assertThat(iterator.hasNext()).isTrue();
assertThat(iterator.next()).isNotNull();
- assertThat(queue).isNotEmpty();
-
+ Awaitility.await("Queue is populated")
+ .atMost(5, TimeUnit.SECONDS)
+ .untilAsserted(() -> assertThat(queue).isNotEmpty());
Review Comment:
Actually the same may apply for the very first element offered to the queue,
will fix that
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]