fix readdTest

This commit is contained in:
2024-07-26 19:11:28 +02:00
parent d3ef6d6b43
commit d6c0120cf5

View File

@@ -144,7 +144,7 @@ public class HashSetDelayedBlockingQueueTest {
}
});
var thing = queue.getAllWait(); // Theoretically you can get one...
if (thing.size() == 1) thing.add(queue.getAllWait());
if (thing.size() == 1) thing.add(queue.getAllWait().stream().findFirst());
var gotTime = System.currentTimeMillis();
Assertions.assertIterableEquals(List.of("hello1", "hello2"), thing);
Assertions.assertTrue((gotTime - curTime) >= 1810);