From 381f978da25b02111dd44eee39d18096090a0578 Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Wed, 19 Apr 2017 18:23:15 -0700 Subject: [PATCH] make the regex for testing more consistent --- .../AssemblyTestLogTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Microsoft.Extensions.Logging.Testing.Tests/AssemblyTestLogTests.cs b/test/Microsoft.Extensions.Logging.Testing.Tests/AssemblyTestLogTests.cs index 59e4b4b0..421250b2 100644 --- a/test/Microsoft.Extensions.Logging.Testing.Tests/AssemblyTestLogTests.cs +++ b/test/Microsoft.Extensions.Logging.Testing.Tests/AssemblyTestLogTests.cs @@ -90,7 +90,7 @@ [TestLifetime] [Information] Finished test ""FakeTestName"" in DURATION } } - private static readonly Regex DurationRegex = new Regex(@"\d+\.\d+E?-?\d*s"); + private static readonly Regex DurationRegex = new Regex(@"[^ ]+s$"); private static string MakeConsistent(string input) { return string.Join(Environment.NewLine, input.Split(new[] { Environment.NewLine }, StringSplitOptions.None)