diff --git a/x-pack/plugin/runtime-fields/src/test/java/org/elasticsearch/xpack/runtimefields/mapper/BooleanScriptMappedFieldTypeTests.java b/x-pack/plugin/runtime-fields/src/test/java/org/elasticsearch/xpack/runtimefields/mapper/BooleanScriptMappedFieldTypeTests.java index 665d7828f55..29d2653346f 100644 --- a/x-pack/plugin/runtime-fields/src/test/java/org/elasticsearch/xpack/runtimefields/mapper/BooleanScriptMappedFieldTypeTests.java +++ b/x-pack/plugin/runtime-fields/src/test/java/org/elasticsearch/xpack/runtimefields/mapper/BooleanScriptMappedFieldTypeTests.java @@ -341,7 +341,7 @@ public class BooleanScriptMappedFieldTypeTests extends AbstractNonTextScriptMapp } } - public void randomTermsQueryDegeneratesIntoMatchNone() throws IOException { + public void testEmptyTermsQueryDegeneratesIntoMatchNone() throws IOException { assertThat( simpleMappedFieldType().termsQuery(org.elasticsearch.common.collect.List.of(), mockContext()), instanceOf(MatchNoDocsQuery.class)