mikemccand commented on a change in pull request #128:
URL: https://github.com/apache/lucene/pull/128#discussion_r638777677



##########
File path: lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java
##########
@@ -321,6 +321,7 @@ public static void syncConcurrentMerges(MergeScheduler ms) {
       checker.setDoSlowChecks(doSlowChecks);
       checker.setFailFast(failFast);
       checker.setInfoStream(new PrintStream(output, false, IOUtils.UTF_8), 
false);
+      checker.setThreadCount(RandomNumbers.randomIntBetween(new Random(), 1, 
5));

Review comment:
       @dweiss also opened a good follow-on issue to [add `new Random()` to 
forbidden APIs for test](https://issues.apache.org/jira/browse/LUCENE-9973).  
Ahh, it was already there, but something else was wrong in how `test-framework` 
invokes forbidden APIs.  Anyway it looks like @dweiss is fixing this, thanks ;)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to