|
13 | 13 | import org.apache.commons.lang3.StringUtils; |
14 | 14 | import org.junit.jupiter.api.BeforeAll; |
15 | 15 | import org.junit.jupiter.api.Test; |
16 | | -import org.junit.jupiter.api.condition.EnabledOnJre; |
17 | | -import org.junit.jupiter.api.condition.JRE; |
18 | 16 | import org.junit.jupiter.params.ParameterizedTest; |
19 | 17 | import org.junit.jupiter.params.provider.Arguments; |
20 | 18 | import org.junit.jupiter.params.provider.MethodSource; |
21 | 19 |
|
22 | 20 | import java.nio.file.Paths; |
23 | | -import java.time.Duration; |
24 | 21 | import java.util.stream.Stream; |
25 | 22 |
|
26 | 23 | import static org.junit.jupiter.api.Assertions.*; |
@@ -319,19 +316,6 @@ void offlineShouldTest_regexValidation(String useCaseKey, String input, boolean |
319 | 316 | switcher.prepareEntry(entry); |
320 | 317 | assertEquals(expected, switcher.isItOn()); |
321 | 318 | } |
322 | | - |
323 | | - @Test |
324 | | - @EnabledOnJre(value = { JRE.JAVA_8 }) |
325 | | - void offlineShouldTest_evilRegexTimeout() { |
326 | | - Switchers.configure(ContextBuilder.builder().regexTimeout("500")); |
327 | | - |
328 | | - Switcher switcher = Switchers.getSwitcher(Switchers.USECASE95); |
329 | | - Entry entry = Entry.build(StrategyValidator.REGEX, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); |
330 | | - |
331 | | - switcher.prepareEntry(entry); |
332 | | - boolean result = assertTimeoutPreemptively(Duration.ofMillis(600), () -> switcher.isItOn()); |
333 | | - assertFalse(result); |
334 | | - } |
335 | 319 |
|
336 | 320 | @ParameterizedTest() |
337 | 321 | @MethodSource("regexTestArguments") |
|
0 commit comments