Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr 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.java
index 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 complete
req.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 completed
req.setContentStreams( toContentStreams(