From 9ed98cbfffc86a221ed9f00d75d4a6c9d248226e Mon Sep 17 00:00:00 2001 From: rmcrackan Date: Mon, 25 May 2026 10:58:57 -0400 Subject: [PATCH] unit test fix: this is always going be a weird test. it's trying to balance machine speed vs long running process -- and test 'unreasonable' response time --- .../_Tests/FileManager.Tests/ConditionalTagCollectionTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/_Tests/FileManager.Tests/ConditionalTagCollectionTests.cs b/Source/_Tests/FileManager.Tests/ConditionalTagCollectionTests.cs index 8c8e2dd5..c5b5360e 100644 --- a/Source/_Tests/FileManager.Tests/ConditionalTagCollectionTests.cs +++ b/Source/_Tests/FileManager.Tests/ConditionalTagCollectionTests.cs @@ -63,7 +63,8 @@ public class ConditionalTagCollectionTests [DataRow("(?'name)abc", "test_value", DisplayName = "InvalidRegexPattern_InvalidGroup")] [DataRow("(a+)+b", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", DisplayName = "CatastrophicBacktracking_NestedQuantifiers")] [DataRow("(a|aa|aaa|aaaa)*?b", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", DisplayName = "CatastrophicBacktracking_AlternationOverlap")] - [DataRow("(a+a+)+b", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", DisplayName = "CatastrophicBacktracking_RepeatedConcatenation")] + // (a+a+)+b needs a longer input than other evil-regex cases to exceed the 100ms match timeout on .NET + [DataRow("(a+a+)+b", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", DisplayName = "CatastrophicBacktracking_RepeatedConcatenation")] [DataRow("^(a+)+$", "aaaaaaaaaaaaaaaaaaaaaab", DisplayName = "CatastrophicBacktracking_AnchoredRepeated")] [DataRow("(a*)*b", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", DisplayName = "CatastrophicBacktracking_StarStar")] public void ConditionalTag_InvalidRegexPattern_ThrowsInvalidOperationException(string pattern, string testValue)