From 888248ce4b74d11253f848cc4a8f8dfcf43f958c Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Wed, 6 Sep 2023 11:35:33 +0200 Subject: [PATCH] Remove outdated test. Parsing regexps no longer raises stack overflows thanks to apache/lucene#12462. --- .../search/aggregations/support/IncludeExcludeTests.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/support/IncludeExcludeTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/support/IncludeExcludeTests.java index 27314a8112f1c..f2e7178316663 100644 --- a/server/src/test/java/org/elasticsearch/search/aggregations/support/IncludeExcludeTests.java +++ b/server/src/test/java/org/elasticsearch/search/aggregations/support/IncludeExcludeTests.java @@ -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)); - } }