Apache Lucene open-source search software
Fix TestHnswByteVectorGraph.testBuildingJoinSet (#14398)
Mayya Sharipova42fc708470fe
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.javaindex 8739bfe82d7..b9bb812392b 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@@ -528,9 +528,9 @@ abstract class HnswGraphTestCase<T> extends LuceneTestCase {public void testBuildingJoinSet() throws IOException {int dim = random().nextInt(100) + 1;- int nDoc = random().nextInt(5000) + 1;- int M = 16;- int beamWidth = random().nextInt(10) + 5;+ int nDoc = random().nextInt(500) + 100;+ int M = random().nextInt(16) + 16;+ int beamWidth = random().nextInt(100) + 16;long seed = random().nextLong();KnnVectorValues vectors = vectorValues(nDoc, dim);RandomVectorScorerSupplier scorerSupplier = buildScorerSupplier(vectors);