mirror of https://github.com/apache/lucene.git
Make autocommit tests slightly more tolerant of system load
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@564075 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
06b56541a6
commit
3064ab7a10
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue