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)