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:
Mark Robert Miller 2014-02-23 01:43:37 +00:00
parent 00339db708
commit 4fd914a81a
1 changed files with 1 additions and 1 deletions

View File

@ -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");