tests: raise timeout

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1448426 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-02-20 21:29:44 +00:00
parent e848961db1
commit 1e5ce76902
1 changed files with 2 additions and 2 deletions

View File

@ -113,14 +113,14 @@ public class UnloadDistributedZkTest extends BasicDistributedZkTest {
// there should be only one shard
Slice shard2 = getCommonCloudSolrServer().getZkStateReader().getClusterState().getSlice(collection, "shard2");
long timeoutAt = System.currentTimeMillis() + 30000;
long timeoutAt = System.currentTimeMillis() + 45000;
while (shard2 != null) {
if (System.currentTimeMillis() > timeoutAt) {
printLayout();
fail("Still found shard");
}
Thread.sleep(50);
Thread.sleep(1000);
shard2 = getCommonCloudSolrServer().getZkStateReader().getClusterState().getSlice(collection, "shard2");
}