diff --git a/server/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java b/server/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java index b9de5eb19fb7b..2083da5d0c671 100644 --- a/server/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java +++ b/server/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java @@ -173,6 +173,14 @@ protected void doAssertLuceneQuery(MultiMatchQueryBuilder queryBuilder, Query qu .or(instanceOf(BlendedTermQuery.class))); } + @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/41847") + // TODO #41847: This method is only overridden to allow muting this test. Please remove this override again after fixing it. + @Override + public void testToQuery() throws IOException { + super.testToQuery(); + } + + public void testIllegaArguments() { expectThrows(IllegalArgumentException.class, () -> new MultiMatchQueryBuilder(null, "field")); expectThrows(IllegalArgumentException.class, () -> new MultiMatchQueryBuilder("value", (String[]) null));