try to stop nightly build failures

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@804995 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-08-17 14:27:54 +00:00
parent 71286043e4
commit 1b609c3af1

View File

@ -219,13 +219,13 @@ abstract public class SolrExampleTests extends SolrExampleTestBase
doc3.addField( "price", 10 );
UpdateRequest up = new UpdateRequest();
up.add( doc3 );
up.setCommitWithin( 100 );
up.setCommitWithin( 500 ); // a smaller commitWithin caused failures on the following assert
up.process( server );
rsp = server.query( new SolrQuery( "*:*") );
Assert.assertEquals( 0, rsp.getResults().getNumFound() );
Thread.sleep( 500 ); // wait 1/2 seconds...
Thread.sleep( 1000 ); // wait 1 sec
// now check that it comes out...
rsp = server.query( new SolrQuery( "id:id3") );