Skip to content

Commit

Permalink
Fix CI error in DenseVectorFieldMapperTests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Dec 4, 2023
1 parent aedbe68 commit be755e1
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,6 @@ public void testMaxDimsByteVector() throws IOException {
assertArrayEquals("Parsed vector is not equal to original.", vector, vectorField.vectorValue());
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/102899")
public void testVectorSimilarity() {
assertEquals(
VectorSimilarityFunction.COSINE,
Expand All @@ -777,7 +776,11 @@ public void testVectorSimilarity() {
assertEquals(
VectorSimilarityFunction.COSINE,
VectorSimilarity.COSINE.vectorSimilarityFunction(
IndexVersionUtils.randomVersionBetween(random(), IndexVersions.V_8_0_0, DenseVectorFieldMapper.NORMALIZE_COSINE),
IndexVersionUtils.randomVersionBetween(
random(),
IndexVersions.V_8_0_0,
IndexVersionUtils.getPreviousVersion(DenseVectorFieldMapper.NORMALIZE_COSINE)
),
ElementType.FLOAT
)
);
Expand Down

0 comments on commit be755e1

Please sign in to comment.