Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,6 @@ tests:
- class: org.elasticsearch.upgrades.MatchOnlyTextRollingUpgradeIT
method: testIndexing {upgradedNodes=1}
issue: https://github.com/elastic/elasticsearch/issues/135525
- class: org.elasticsearch.index.codec.vectors.cluster.HierarchicalKMeansTests
method: testFewDifferentValues
issue: https://github.com/elastic/elasticsearch/issues/135538

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void testFewDifferentValues() throws IOException {
assertEquals(nVectors, soarAssignments.length);
// verify no duplicates exist
for (int i = 0; i < assignments.length; i++) {
assertTrue(soarAssignments[i] >= 0 && soarAssignments[i] < centroids.length);
assertTrue(soarAssignments[i] >= -1 && soarAssignments[i] < centroids.length);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: I wonder if it's useful to move that special value into a constant, so that we can reuse the same "too close" value both in code and tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do that real quick: 👍

assertNotEquals(assignments[i], soarAssignments[i]);
}
} else {
Expand Down