Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ void simpleDelayingQueue() throws Exception {
String item = queue.get();
queue.done(item);

Thread.sleep(10 * 1000L);
// The only entry was released above, so once nothing is left waiting to be added the queue
// cannot receive anything else. Poll for that instead of sleeping for a fixed 10 seconds.
assertThat(waitForWaitingQueueToFill(queue)).isTrue();
assertThat(0).isEqualTo(queue.length());
}

Expand Down
Loading