attempt to harden test for apache jenkins

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423953 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-12-19 17:04:47 +00:00
parent 6f875e270f
commit 0cc46b3cae
1 changed files with 5 additions and 2 deletions

View File

@ -83,9 +83,12 @@ public class RecoveryZkTest extends AbstractFullDistribZkTestBase {
indexThread2.join();
Thread.sleep(500);
waitForRecoveriesToFinish(DEFAULT_COLLECTION, zkStateReader, false, true);
commit();
waitForThingsToLevelOut(30);
Thread.sleep(1000);
waitForRecoveriesToFinish(DEFAULT_COLLECTION, zkStateReader, false, true);
// test that leader and replica have same doc count