#240: disable threads in the random IndexSearcher from newSearcher for this test class

This commit is contained in:
Mike McCandless 2023-11-28 19:37:21 -05:00
parent 2bb69f3246
commit 8703b541a5
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ public class TestTopFieldCollector extends LuceneTestCase {
}
ir = iw.getReader();
iw.close();
is = newSearcher(ir);
// cannot use threads with this IndexSearcher since some tests rely on no threads
is = newSearcher(ir, true, true, false);
}
@Override