extra insurance that recovery has started or occurred in this test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1421613 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-12-13 23:10:58 +00:00
parent ead809a5ff
commit 7486aad798
1 changed files with 3 additions and 0 deletions

View File

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