You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2024/04/19 08:14:22 UTC
(lucene) 02/02: Fix test after backport (#13252)
This is an automated email from the ASF dual-hosted git repository.
uschindler pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
commit cb1d755b8a0e615198cecf74af9be5055f7ca82f
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Fri Apr 19 10:14:10 2024 +0200
Fix test after backport (#13252)
---
.../java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java
index d5f69b53339..f59b3881416 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java
@@ -390,7 +390,7 @@ public abstract class BasePostingsFormatTestCase extends BaseIndexFileFormatTest
TermsEnum termsEnum = getOnlyLeafReader(reader).terms("id").iterator();
for (int i = 0; i < 20000; i++) {
- int n = random().nextInt(0, 10000);
+ int n = TestUtil.nextInt(random(), 0, 9999);
BytesRef target = new BytesRef(n + "");
// seekExact.
assertTrue(termsEnum.seekExact(target));