lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r804995 - /lucene/solr/trunk/src/test/org/apache/solr/client/solrj/SolrExampleTests.java
Date Mon, 17 Aug 2009 14:27:54 GMT
Author: yonik
Date: Mon Aug 17 14:27:54 2009
New Revision: 804995

URL: http://svn.apache.org/viewvc?rev=804995&view=rev
Log:
try to stop nightly build failures

Modified:
    lucene/solr/trunk/src/test/org/apache/solr/client/solrj/SolrExampleTests.java

Modified: lucene/solr/trunk/src/test/org/apache/solr/client/solrj/SolrExampleTests.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/client/solrj/SolrExampleTests.java?rev=804995&r1=804994&r2=804995&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/client/solrj/SolrExampleTests.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/client/solrj/SolrExampleTests.java Mon Aug
17 14:27:54 2009
@@ -219,13 +219,13 @@
     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") );



Mime
View raw message