Skip to content

Commit

Permalink
Fix diag test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Jan 23, 2024
1 parent 459a5e6 commit 57043a3
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ private async Task<string> AssertDiagnosticReportWasGeneratedAsync(TestHostResul

string diagContentsPattern =
"""
\[.+ - Information\] Version: .+
\[.+ - Information\] Logging mode: .+
\[.+ - Information] Logging level: .+
\[.+ - Information\] CreateBuilderAsync entry time: .+
\[.+ - Information\] PID: .+
.+ Microsoft.Testing.Platform.Builder.TestApplication INFORMATION Version: .+
.+ Microsoft.Testing.Platform.Builder.TestApplication INFORMATION Logging mode: .+
.+ Microsoft.Testing.Platform.Builder.TestApplication INFORMATION Logging level: .+
.+ Microsoft.Testing.Platform.Builder.TestApplication INFORMATION CreateBuilderAsync entry time: .+
.+ Microsoft.Testing.Platform.Builder.TestApplication INFORMATION PID: .+
""";
(bool isMatch, string content) = await CheckDiagnosticContentsMatchAsync(match.Value, diagContentsPattern);
Assert.IsTrue(isMatch, $"{content}\n{diagContentsPattern}");
Expand Down

0 comments on commit 57043a3

Please sign in to comment.