We are hoping to pretty much deprecate this style of testing auto commit. Hossman has a patch that I think it about ready to go in - between yonik fixing autocommit bugs and hossman making progress on his test, the new style of testing should be much more robust. The old style is heavily dependent on timing issues, which can be quite problematic when running parallel tests especially.
- Mark On Sep 28, 2011, at 11:17 AM, Jan Høydahl wrote: > Hi, > > When running "ant test" in trunk/solr folder, it (almost always) fails with: > > [junit] junit.framework.AssertionFailedError: should find 5 query failed > XPath: //result[@numFound=5] > > Reason is it finds only 4 docs, the failing test line being: > org.apache.solr.update.AutoCommitTest.testSoftCommitMaxDocs(AutoCommitTest.java:311) > > However, when re-producing the test as instructed, the test always passes: > ant test -Dtestcase=AutoCommitTest -Dtestmethod=testSoftCommitMaxDocs > -Dtests.seed=3dfe5189161d5bbf:4cbb4b945c80733b:-21bbb941a15f0984 > The same when re-running the test suite > ant test -Dtestcase=AutoCommitTest > > But when I then do an "ant test" again it fails on the same test method. > > I have done ant clean on top-level as well as svn up multiple times. > My HW is MBP, MacOs Lion, Java 1.6.0_26, ant 1.8.2. > > -- > Jan Høydahl, search solution architect > Cominvent AS - www.cominvent.com > Solr Training - www.solrtraining.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > - Mark Miller lucidimagination.com 2011.lucene-eurocon.org | Oct 17-20 | Barcelona --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org