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 2024/12/12 19:06:53 UTC
(lucene) branch branch_10x updated: Adjust test for new random quantization formats (#14058)
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 f8404620878 Adjust test for new random quantization formats (#14058)
f8404620878 is described below
commit f84046208789147e835841de89cf6c7a98855736
Author: Benjamin Trent <be...@gmail.com>
AuthorDate: Thu Dec 12 13:22:50 2024 -0500
Adjust test for new random quantization formats (#14058)
---
.../core/src/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 feebe858c09..32e8e0c381d 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 class TestKnnFloatVectorQuery extends BaseKnnVectorQueryTestCase {
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);
}