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:
Mike Klaas 2007-08-09 02:12:08 +00:00
parent 06b56541a6
commit 3064ab7a10
1 changed files with 2 additions and 2 deletions

View File

@ -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(