Skip to content

Apache Lucene open-source search software

more informative error msg in test

Mark Robert Miller2343f0d06a60
diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractDistribZkTestBase.java b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractDistribZkTestBase.java
index 63e83df931a..67c9ee0a0a2 100644
--- a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractDistribZkTestBase.java
+++ b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractDistribZkTestBase.java
@@ -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 {