Skip to content

Commit 0e10012

Browse files
authored
Fix flakey semantic_text index_options test (#133323) (#133333)
* Fix flakey semantic_text index_options test * Unmute test (cherry picked from commit c9b2a46) # Conflicts: # muted-tests.yml
1 parent 32c1f56 commit 0e10012

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,11 @@ public void testDefaultIndexOptions() throws IOException {
12991299
b.field("similarity", "cosine");
13001300
b.field("element_type", "float");
13011301
b.endObject();
1302-
}), useLegacyFormat, IndexVersions.SEMANTIC_TEXT_DEFAULTS_TO_BBQ_BACKPORT_8_X, IndexVersions.UPGRADE_TO_LUCENE_10_0_0);
1302+
}),
1303+
useLegacyFormat,
1304+
IndexVersions.SEMANTIC_TEXT_DEFAULTS_TO_BBQ_BACKPORT_8_X,
1305+
IndexVersionUtils.getPreviousVersion(IndexVersions.UPGRADE_TO_LUCENE_10_0_0)
1306+
);
13031307
assertSemanticTextField(mapperService, "field", true, null, defaultBbqHnswSemanticTextIndexOptions());
13041308

13051309
// Previous 8.x index versions do not set BBQ index options

0 commit comments

Comments
 (0)