mirror of https://github.com/apache/lucene.git
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:
parent
7c130d2f07
commit
4e207fed62
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue