use waiting multiple when waiting in AnnouncerTest

This commit is contained in:
Xavier Léauté 2015-01-19 10:19:13 -08:00
parent 6f1537d153
commit b5f0d119f1
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ public class AnnouncerTest extends CuratorTestBase
); );
KillSession.kill(curator.getZookeeperClient().getZooKeeper(), server.getConnectString()); KillSession.kill(curator.getZookeeperClient().getZooKeeper(), server.getConnectString());
Assert.assertTrue(timing.awaitLatch(latch)); Assert.assertTrue(timing.forWaiting().awaitLatch(latch));
Assert.assertArrayEquals(billy, curator.getData().decompressed().forPath(testPath1)); Assert.assertArrayEquals(billy, curator.getData().decompressed().forPath(testPath1));
Assert.assertArrayEquals(billy, curator.getData().decompressed().forPath(testPath2)); Assert.assertArrayEquals(billy, curator.getData().decompressed().forPath(testPath2));