From f84046208789147e835841de89cf6c7a98855736 Mon Sep 17 00:00:00 2001 From: Benjamin Trent Date: Thu, 12 Dec 2024 13:22:50 -0500 Subject: [PATCH] Adjust test for new random quantization formats (#14058) --- .../test/org/apache/lucene/search/TestKnnFloatVectorQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/search/TestKnnFloatVectorQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestKnnFloatVectorQuery.java index feebe858c099..32e8e0c381dc 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestKnnFloatVectorQuery.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestKnnFloatVectorQuery.java @@ -130,7 +130,7 @@ public void testScoreNegativeDotProduct() throws IOException { DocIdSetIterator it = scorer.iterator(); assertEquals(2, it.cost()); assertEquals(0, it.nextDoc()); - assertEquals(0, scorer.score(), 0); + assertTrue(0 <= scorer.score()); assertEquals(1, it.advance(1)); assertEquals(1, scorer.score(), 0); }