Tone down TestDocumentsWriterStallControl.testRandom, so it does not take minutes (#11894)

This test often takes several minutes with normal runs (no NIGHTLY/multiplier/etc). Tone it down so that it isn't slow: CI builds can work it harder by passing those parameters
This commit is contained in:
Robert Muir 2022-11-02 12:17:15 -04:00 committed by GitHub
parent 7c130d2f07
commit 4e207fed62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase {
@Override
public void run() {
int iters = atLeast(1000);
int iters = atLeast(100);
for (int j = 0; j < iters; j++) {
ctrl.updateStalled(random().nextInt(stallProbability) == 0);
if (random().nextInt(5) == 0) { // thread 0 only updates