Skip to content

Commit

Permalink
Remove outdated test.
Browse files Browse the repository at this point in the history
Parsing regexps no longer raises stack overflows thanks to apache/lucene#12462.
  • Loading branch information
jpountz committed Sep 6, 2023
1 parent 6d0aebc commit 888248c
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,4 @@ public void testInvalidIncludeExcludeCombination() {
expectThrows(IllegalArgumentException.class, () -> new IncludeExclude(null, regex, null, values));
}

public void testLongIncludeExclude() {
String longString = Strings.repeat('a', 100000);
IllegalArgumentException iae = expectThrows(IllegalArgumentException.class, () -> new IncludeExclude(longString, null, null, null));
assertThat(iae.getMessage(), equalTo("failed to parse regexp due to stack overflow: " + longString));
}
}

0 comments on commit 888248c

Please sign in to comment.