Skip to content

Commit 320c2dd

Browse files
Fix for issue 119723
1 parent de09149 commit 320c2dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/HighlightBuilderTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,11 +574,10 @@ public void testPreTagsWithoutPostTags() throws IOException {
574574
assertEquals("pre_tags are set but post_tags are not set", e.getCause().getCause().getMessage());
575575
}
576576

577-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/119723")
578577
public void testInvalidMaxAnalyzedOffset() throws IOException {
579578
XContentParseException e = expectParseThrows(
580579
XContentParseException.class,
581-
"{ \"max_analyzed_offset\" : " + randomIntBetween(-100, -1) + "}"
580+
"{ \"max_analyzed_offset\" : " + randomIntBetween(-100, -2) + "}"
582581
);
583582
assertThat(e.getMessage(), containsString("[highlight] failed to parse field [" + MAX_ANALYZED_OFFSET_FIELD.toString() + "]"));
584583
assertThat(e.getCause().getMessage(), containsString("[max_analyzed_offset] must be a positive integer, or -1"));

0 commit comments

Comments
 (0)