tests: try waiting for collection first

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1459596 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-03-22 00:05:37 +00:00
parent f6fa8c215d
commit a5fd71f0ee
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ public class BasicDistributedZk2Test extends AbstractFullDistribZkTestBase {
fail(e.getMessage());
}
waitForCollection(cloudClient.getZkStateReader(), ONE_NODE_COLLECTION, 1);
waitForRecoveriesToFinish(ONE_NODE_COLLECTION, cloudClient.getZkStateReader(), false);
cloudClient.getZkStateReader().getLeaderRetry(ONE_NODE_COLLECTION, "shard1", 30000);