Apache Lucene open-source search software
Make autocommit tests slightly more tolerant of system load
Mike Klaas3064ab7a1046
diff --git a/src/test/org/apache/solr/update/AutoCommitTest.java b/src/test/org/apache/solr/update/AutoCommitTest.javaindex c62b3a4d0df..e4000a4f742 100644--- a/src/test/org/apache/solr/update/AutoCommitTest.java+++ b/src/test/org/apache/solr/update/AutoCommitTest.java@@ -82,7 +82,7 @@ public class AutoCommitTest extends AbstractSolrTestCase {adoc("id", "A14", "subject", "info" ), null ) );handler.handleRequest( req, rsp );// Wait longer then the autocommit time- Thread.sleep( 500 );+ Thread.sleep( 1000 );// blocks until commit is completereq.setContentStreams( toContentStreams(adoc("id", "A15", "subject", "info" ), null ) );@@ -108,7 +108,7 @@ public class AutoCommitTest extends AbstractSolrTestCase {req.setContentStreams( toContentStreams(adoc("id", "B14", "subject", "info" ), null ) );handler.handleRequest( req, rsp );- Thread.sleep( 500 );+ Thread.sleep( 1000 );// add request will block if commit has already started or completedreq.setContentStreams( toContentStreams(