mirror of https://github.com/apache/lucene.git
tests: harden against slow envs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1570946 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00339db708
commit
4fd914a81a
|
@ -342,7 +342,7 @@ public class BasicDistributedZkTest extends AbstractFullDistribZkTestBase {
|
|||
params.set("commitWithin", 10);
|
||||
add(cloudClient, params , getDoc("id", 300));
|
||||
|
||||
long timeout = System.currentTimeMillis() + 15000;
|
||||
long timeout = System.currentTimeMillis() + 30000;
|
||||
while (cloudClient.query(new SolrQuery("*:*")).getResults().getNumFound() != before + 1) {
|
||||
if (timeout <= System.currentTimeMillis()) {
|
||||
fail("commitWithin did not work");
|
||||
|
|
Loading…
Reference in New Issue