tests: higher timeout, more specific fail msg, remove unused import

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457455 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-03-17 14:35:59 +00:00
parent 0f3af7cec9
commit 20cb1cdca9
3 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,6 @@ import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.store.NRTCachingDirectory;
import org.apache.solr.common.params.SolrParams;
import org.apache.solr.common.util.NamedList;
import org.apache.solr.core.DirectoryFactory.DirContext;
/**
* Factory to instantiate {@link org.apache.lucene.store.NRTCachingDirectory}

View File

@ -288,7 +288,7 @@ public class BasicDistributedZk2Test extends AbstractFullDistribZkTestBase {
long numFound1 = cloudClient.query(new SolrQuery("*:*")).getResults().getNumFound();
cloudClient.getZkStateReader().getLeaderRetry(DEFAULT_COLLECTION, SHARD1, 45000);
cloudClient.getZkStateReader().getLeaderRetry(DEFAULT_COLLECTION, SHARD1, 60000);
index_specific(shardToJetty.get(SHARD1).get(1).client.solrClient, id, 1000, i1, 108, t1,
"specific doc!");

View File

@ -121,7 +121,7 @@ public class UnloadDistributedZkTest extends BasicDistributedZkTest {
while (shard2 != null) {
if (System.currentTimeMillis() > timeoutAt) {
printLayout();
fail("Still found shard");
fail("Still found shard2 in collection " + collection);
}
Thread.sleep(1000);