Skip to content

Commit 146965f

Browse files
Mute MatchPhrase*QueryBuilderTests
Relates #31061
1 parent b665d59 commit 146965f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

server/src/test/java/org/elasticsearch/index/query/MatchPhrasePrefixQueryBuilderTests.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@ protected void doAssertLuceneQuery(MatchPhrasePrefixQueryBuilder queryBuilder, Q
9999
.or(instanceOf(IndexOrDocValuesQuery.class)).or(instanceOf(MatchNoDocsQuery.class)));
100100
}
101101

102+
/**
103+
* Overridden to allow for annotating with @AwaitsFix. Please remove this method after fixing.
104+
*/
105+
@Override
106+
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/31061")
107+
public void testToQuery() throws IOException {
108+
super.testToQuery();
109+
}
110+
102111
public void testIllegalValues() {
103112
IllegalArgumentException e = expectThrows(IllegalArgumentException.class, () -> new MatchPhrasePrefixQueryBuilder(null, "value"));
104113
assertEquals("[match_phrase_prefix] requires fieldName", e.getMessage());

server/src/test/java/org/elasticsearch/index/query/MatchPhraseQueryBuilderTests.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ protected void doAssertLuceneQuery(MatchPhraseQueryBuilder queryBuilder, Query q
107107
.or(instanceOf(IndexOrDocValuesQuery.class)).or(instanceOf(MatchNoDocsQuery.class)));
108108
}
109109

110+
/**
111+
* Overridden to allow for annotating with @AwaitsFix. Please remove this method after fixing.
112+
*/
113+
@Override
114+
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/31061")
115+
public void testToQuery() throws IOException {
116+
super.testToQuery();
117+
}
118+
110119
public void testIllegalValues() {
111120
IllegalArgumentException e = expectThrows(IllegalArgumentException.class, () -> new MatchPhraseQueryBuilder(null, "value"));
112121
assertEquals("[match_phrase] requires fieldName", e.getMessage());

0 commit comments

Comments
 (0)