Skip to content

Commit

Permalink
Undo unintended change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpountz committed Dec 3, 2024
1 parent 9006273 commit 70838e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ private void verifyEnum(
target = impactsEnum.docID() + delta;
}

if (advance && target > max && random.nextBoolean()) {
if (target > max && random.nextBoolean()) {
int delta = Math.min(random.nextInt(512), DocIdSetIterator.NO_MORE_DOCS - target);
max = target + delta;

Expand Down Expand Up @@ -1416,7 +1416,7 @@ public void testTerms(
final boolean alwaysTestMax)
throws Exception {

if (options.contains(Option.THREADS) && false) {
if (options.contains(Option.THREADS)) {
int numThreads = LuceneTestCase.TEST_NIGHTLY ? TestUtil.nextInt(random, 2, 5) : 2;
Thread[] threads = new Thread[numThreads];
for (int threadUpto = 0; threadUpto < numThreads; threadUpto++) {
Expand Down

0 comments on commit 70838e3

Please sign in to comment.