more informative error msg in test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1403056 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-10-28 18:04:23 +00:00
parent 245133a3bd
commit 2343f0d06a

View File

@ -151,13 +151,13 @@ public abstract class AbstractDistribZkTestBase extends BaseDistributedSearchTes
if (!sawLiveRecovering) {
if (verbose) System.out.println("no one is recoverying");
} else {
if (verbose) System.out
.println("Gave up waiting for recovery to finish..");
if (failOnTimeout) {
fail("There are still nodes recoverying");
fail("There are still nodes recoverying - waited for " + timeoutSeconds + " seconds");
printLayout();
return;
}
if (verbose) System.out
.println("gave up waiting for recovery to finish..");
}
cont = false;
} else {