You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2012/08/06 20:27:07 UTC
svn commit: r1369911 -
/lucene/dev/trunk/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
Author: mikemccand
Date: Mon Aug 6 18:27:07 2012
New Revision: 1369911
URL: http://svn.apache.org/viewvc?rev=1369911&view=rev
Log:
LUCENE-4292: cannot assert numSearches > 0 in this test
Modified:
lucene/dev/trunk/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
Modified: lucene/dev/trunk/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java?rev=1369911&r1=1369910&r2=1369911&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java (original)
+++ lucene/dev/trunk/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java Mon Aug 6 18:27:07 2012
@@ -156,7 +156,12 @@ public class TestPerfTasksLogic extends
CountingSearchTestTask.numSearches = 0;
execBenchmark(algLines);
- assertTrue(CountingSearchTestTask.numSearches > 0);
+
+ // NOTE: cannot assert this, because on a super-slow
+ // system, it could be after waiting 0.5 seconds that
+ // the search threads hadn't yet succeeded in starting
+ // up and then they start up and do no searching:
+ //assertTrue(CountingSearchTestTask.numSearches > 0);
}
public void testHighlighting() throws Exception {