Skip to content

Commit 5ab68d8

Browse files
authored
Merge pull request #404 from datastax/flaky-20ktest-fix
Fix flaky tests and eliminate console output
2 parents 0962ddb + c8dbb0d commit 5ab68d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jvector-tests/src/test/java/io/github/jbellis/jvector/graph/Test2DThreshold.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void testThreshold10k() throws IOException {
4141
@Test
4242
public void testThreshold20k() throws IOException {
4343
for (int i = 0; i < 10; i++) {
44-
testThreshold(20_000, 24, 0.75f, 0.95f);
44+
testThreshold(20_000, 24, 0.80f, 0.9f);
4545
}
4646
}
4747

jvector-tests/src/test/java/io/github/jbellis/jvector/quantization/TestCompressedVectors.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ private void testNVQEncodings(List<VectorFloat<?>> vectors, List<VectorFloat<?>>
207207
} else if (vsf == VectorSimilarityFunction.DOT_PRODUCT) {
208208
tolerance *= 4;
209209
}
210-
System.out.println(vsf + " error " + error + " tolerance " + tolerance);
210+
// System.out.println(vsf + " error " + error + " tolerance " + tolerance);
211211
assert error <= tolerance : String.format("%s > %s for %s with %d dimensions and %d subvectors", error, tolerance, vsf, dimension, nSubvectors);
212212
}
213-
System.out.println("--");
213+
// System.out.println("--");
214214
}
215215

216216
@Test
@@ -221,7 +221,7 @@ public void testNVQEncodings() {
221221

222222
for (var nSubvectors : List.of(1, 2, 4, 8)) {
223223
for (var learn : List.of(false, true)) {
224-
System.out.println("dimensions: " + d + " subvectors: " + nSubvectors + " learn: " + learn);
224+
// System.out.println("dimensions: " + d + " subvectors: " + nSubvectors + " learn: " + learn);
225225
testNVQEncodings(vectors, queries, nSubvectors, learn);
226226
}
227227
}

0 commit comments

Comments
 (0)