mirror of https://github.com/apache/lucene.git
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:
parent
e848961db1
commit
1e5ce76902
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue