Fixed flaky BlockingPoolTest.testConcurrentTakeBatch() (#9692)

This commit is contained in:
Aleksey Plekhanov 2020-05-03 22:54:27 +03:00 committed by GitHub
parent ee9a721acc
commit 9341ea828a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ public class BlockingPoolTest
final List<ReferenceCountingResourceHolder<Integer>> r1 = f1.get();
final List<ReferenceCountingResourceHolder<Integer>> r2 = f2.get();
if (r1 != null) {
if (!r1.isEmpty()) {
Assert.assertTrue(r2.isEmpty());
Assert.assertEquals(pool.maxSize() - batch1, pool.getPoolSize());
Assert.assertEquals(batch1, r1.size());