From 57043a35c663d67a4aa20970637070e60797bfec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Tue, 23 Jan 2024 19:11:46 +0100 Subject: [PATCH] Fix diag test --- .../DiagnosticTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/DiagnosticTests.cs b/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/DiagnosticTests.cs index 7d18ed771a..3fc28ea70c 100644 --- a/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/DiagnosticTests.cs +++ b/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/DiagnosticTests.cs @@ -207,11 +207,11 @@ private async Task 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}");