mirror of https://github.com/apache/druid.git
fix broken UT
This commit is contained in:
parent
08318af7f7
commit
070d822345
|
@ -264,6 +264,14 @@ public class ServerManagerTest
|
|||
|
||||
queryNotifyLatch.await();
|
||||
|
||||
Assert.assertEquals(1, factory.getSegmentReferences().size());
|
||||
|
||||
for (ReferenceCountingSegment referenceCountingSegment : factory.getSegmentReferences()) {
|
||||
Assert.assertEquals(0, referenceCountingSegment.getNumReferences());
|
||||
}
|
||||
|
||||
queryWaitYieldLatch.countDown();
|
||||
|
||||
Assert.assertTrue(factory.getAdapters().size() == 1);
|
||||
|
||||
for (SegmentForTesting segmentForTesting : factory.getAdapters()) {
|
||||
|
@ -295,7 +303,7 @@ public class ServerManagerTest
|
|||
|
||||
queryNotifyLatch.await();
|
||||
|
||||
Assert.assertTrue(factory.getSegmentReferences().size() == 1);
|
||||
Assert.assertEquals(1, factory.getSegmentReferences().size());
|
||||
|
||||
for (ReferenceCountingSegment referenceCountingSegment : factory.getSegmentReferences()) {
|
||||
Assert.assertEquals(1, referenceCountingSegment.getNumReferences());
|
||||
|
|
Loading…
Reference in New Issue