Skip to content

Commit 7fa6386

Browse files
committed
fix ut
1 parent ffa865c commit 7fa6386

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,6 @@ public void testInvalidTaskTypes() {
416416
}
417417
}
418418

419-
@Override
420-
protected String[] getParseMinimalWarnings() {
421-
return new String[] { WARNING_MESSAGE_8X };
422-
}
423-
424419
public void testOldIndexSemanticTextDenseVectorCreation() throws IOException {
425420
final String fieldName = "field";
426421
final XContentBuilder fieldMapping = fieldMapping(b -> {
@@ -440,6 +435,7 @@ public void testOldIndexSemanticTextDenseVectorCreation() throws IOException {
440435
IndexVersions.V_8_0_0,
441436
IndexVersionUtils.getPreviousVersion(IndexVersions.FIRST_DETACHED_INDEX_VERSION)
442437
);
438+
assertWarnings(WARNING_MESSAGE_8X);
443439
assertParseMinimalWarnings();
444440
assertSemanticTextField(mapperService, fieldName, true, null, null);
445441
}

0 commit comments

Comments
 (0)