Skip to content

Commit

Permalink
LUCENE-4292: cannot assert numSearches > 0 in this test
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1369913 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mikemccand committed Aug 6, 2012
1 parent 777f25e commit ad5a168
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ public void testBGSearchTaskThreads() throws Exception {

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 {
Expand Down

0 comments on commit ad5a168

Please sign in to comment.