Skip to content

Commit 9a50173

Browse files
committed
Merge branch 'backport/9.1/pr-132264' of github.com:mromaios/elasticsearch into backport/9.1/pr-132264
2 parents b61bc0a + ca2f2ea commit 9a50173

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

server/src/test/java/org/elasticsearch/index/mapper/vectors/SparseVectorFieldMapperTests.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,7 @@ protected IndexVersion boostNotAllowedIndexVersion() {
525525
}
526526

527527
public void testSparseVectorUnsupportedIndex() {
528-
IndexVersion version = IndexVersionUtils.randomVersionBetween(
529-
random(),
530-
V_8_0_0,
531-
IndexVersions.FIRST_DETACHED_INDEX_VERSION
532-
);
528+
IndexVersion version = IndexVersionUtils.randomVersionBetween(random(), V_8_0_0, IndexVersions.FIRST_DETACHED_INDEX_VERSION);
533529
Exception e = expectThrows(MapperParsingException.class, () -> createMapperService(version, fieldMapping(b -> {
534530
b.field("type", "sparse_vector");
535531
})));
@@ -890,7 +886,7 @@ private enum VersionRange {
890886

891887
IndexVersion getRandomVersion() {
892888
// TODO: replace implementation with `IndexVersionUtils::randomVersionBetween` once support is added
893-
// for handling unbalanced version distributions.
889+
// for handling unbalanced version distributions.
894890
NavigableSet<IndexVersion> allReleaseVersions = IndexVersionUtils.allReleasedVersions();
895891
Set<IndexVersion> candidateVersions = allReleaseVersions.subSet(fromVersion, toVersion);
896892
return ESTestCase.randomFrom(candidateVersions);

0 commit comments

Comments
 (0)