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:24:04 UTC
(lucene) branch branch_10x 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 branch_10x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_10x by this push:
new dde0a8dd7b2 Fix testGraphMergeWithDeletes test case to have atleast one vector (#15487)
dde0a8dd7b2 is described below
commit dde0a8dd7b23caae1e3426474d614c1baa4f4f63
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 9fabf370178..1ed25ecf3b2 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
@@ -215,7 +215,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) {