mccullocht commented on code in PR #15271:
URL: https://github.com/apache/lucene/pull/15271#discussion_r2395925225


##########
lucene/core/src/test/org/apache/lucene/codecs/lucene104/TestLucene104HnswScalarQuantizedVectorsFormat.java:
##########
@@ -47,14 +48,32 @@
 import org.apache.lucene.tests.index.BaseKnnVectorsFormatTestCase;
 import org.apache.lucene.tests.util.TestUtil;
 import org.apache.lucene.util.SameThreadExecutorService;
+import org.junit.Before;
 
 public class TestLucene104HnswScalarQuantizedVectorsFormat extends 
BaseKnnVectorsFormatTestCase {
 
-  private static final KnnVectorsFormat FORMAT = new 
Lucene104HnswScalarQuantizedVectorsFormat();
+  private KnnVectorsFormat format;
+  private ScalarEncoding encoding;
+
+  @Before
+  @Override
+  public void setUp() throws Exception {
+    var encodingValues = ScalarEncoding.values();
+    encoding = encodingValues[random().nextInt(encodingValues.length)];
+    // always assume asymmetric for now. Eventually make this more general

Review Comment:
   nit: no longer needed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to