Skip to content

Commit 259b561

Browse files
authored
Delete Regex timeout tests with RegexOptions.Debug (#61888)
We don't need these tests (the Debug flag is only compiled into Debug builds and is there for diagnostic purposes), and it seems these have been taking too long sporadically. Closes #61794
1 parent 3745e38 commit 259b561

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/libraries/System.Text.RegularExpressions/tests/Regex.Match.Tests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,7 @@ public void Match_DefaultTimeout_Throws(RegexOptions options)
794794
// TODO: Figure out what to do with default timeouts for source generated regexes
795795
[Theory]
796796
[InlineData(RegexOptions.None)]
797-
[InlineData(RegexOptions.None | RegexHelpers.RegexOptionDebug)]
798797
[InlineData(RegexOptions.Compiled)]
799-
[InlineData(RegexOptions.Compiled | RegexHelpers.RegexOptionDebug)]
800798
public void Match_CachedPattern_NewTimeoutApplies(RegexOptions options)
801799
{
802800
const string PatternLeadingToLotsOfBacktracking = @"^(\w+\s?)*$";

0 commit comments

Comments
 (0)