You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by be...@apache.org on 2025/12/08 18:22:22 UTC
(lucene) branch main updated: Fix testGraphMergeWithDeletes test case to have atleast one vector (#15487)
This is an automated email from the ASF dual-hosted git repository.
benwtrent 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 94312d0f373 Fix testGraphMergeWithDeletes test case to have atleast one vector (#15487)
94312d0f373 is described below
commit 94312d0f3739d4eab6eee1f0fc728d9e25ccbe9c
Author: Pulkit Gupta <36...@users.noreply.github.com>
AuthorDate: Mon Dec 8 23:52:16 2025 +0530
Fix testGraphMergeWithDeletes test case to have atleast one vector (#15487)
Co-authored-by: Pulkit Gupta <pu...@amazon.com>
---
lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java b/lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java
index 97ea04d2da8..db3c590d920 100644
--- a/lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java
+++ b/lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java
@@ -212,7 +212,7 @@ abstract class HnswGraphTestCase<T> extends LuceneTestCase {
int M = 4;
int beamWidth = 20;
String vectorFieldName = "vec1";
- int numVectors = random().nextInt(1000);
+ int numVectors = random().nextInt(1000) + 1;
int deletionProbaility = random().nextInt(100);
int dim = random().nextInt(64) + 1;
if (dim % 2 == 1) {