From 3801d859783c2242b1423415adb664981eaaa4c9 Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Sun, 15 Sep 2024 16:10:32 -0400 Subject: [PATCH] #13767: fix test failure: compress can only be true when quantized bits=4 --- .../lucene99/TestLucene99ScalarQuantizedVectorScorer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/codecs/lucene99/TestLucene99ScalarQuantizedVectorScorer.java b/lucene/core/src/test/org/apache/lucene/codecs/lucene99/TestLucene99ScalarQuantizedVectorScorer.java index 58e6c27e326a..a0f640fa650b 100644 --- a/lucene/core/src/test/org/apache/lucene/codecs/lucene99/TestLucene99ScalarQuantizedVectorScorer.java +++ b/lucene/core/src/test/org/apache/lucene/codecs/lucene99/TestLucene99ScalarQuantizedVectorScorer.java @@ -165,7 +165,7 @@ public void testScoringUncompressedInt4() throws Exception { } public void testScoringInt7() throws Exception { - vectorScoringTest(7, random().nextBoolean()); + vectorScoringTest(7, false); } private void vectorScoringTest(int bits, boolean compress) throws IOException {