fix broken UT

This commit is contained in:
fjy 2013-08-13 12:01:24 -07:00
parent 08318af7f7
commit 070d822345
1 changed files with 9 additions and 1 deletions

View File

@ -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());