You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2025/06/30 12:31:26 UTC
(lucene) branch main updated: Fix TestIndexOrDocValuesQuery test failure.
This is an automated email from the ASF dual-hosted git repository.
jpountz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 72da91fcdaa Fix TestIndexOrDocValuesQuery test failure.
72da91fcdaa is described below
commit 72da91fcdaae31f6133966af38c7651951f5a3f3
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Mon Jun 30 14:30:55 2025 +0200
Fix TestIndexOrDocValuesQuery test failure.
---
.../src/test/org/apache/lucene/search/TestIndexOrDocValuesQuery.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestIndexOrDocValuesQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestIndexOrDocValuesQuery.java
index 7e20e589a98..8b609dff96a 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestIndexOrDocValuesQuery.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestIndexOrDocValuesQuery.java
@@ -232,7 +232,7 @@ public class TestIndexOrDocValuesQuery extends LuceneTestCase {
var config = newIndexWriterConfig().setCodec(TestUtil.getDefaultCodec());
try (Directory dir = newDirectory();
IndexWriter w = new IndexWriter(dir, config)) {
- final int numDocs = random().nextInt(5000);
+ final int numDocs = TestUtil.nextInt(random(), 1, 100);
for (int i = 0; i < numDocs; ++i) {
Document doc = new Document();
doc.add(new LongPoint("f2", i));