From: Sung Yoon Whang Date: Fri, 14 Aug 2020 21:20:55 +0000 (-0700) Subject: Fix diagnostics client test hang in CentOS (#1433) X-Git-Tag: submit/tizen/20210909.063632~17^2~503 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=805a520aa118feeaa496267deb03a9bcc0bdb96b;p=platform%2Fcore%2Fdotnet%2Fdiagnostics.git Fix diagnostics client test hang in CentOS (#1433) * Try to repro test hang in CentOS release * Try removing incorrect assert * Add comment --- diff --git a/src/tests/Microsoft.Diagnostics.NETCore.Client/EventPipeSessionTests.cs b/src/tests/Microsoft.Diagnostics.NETCore.Client/EventPipeSessionTests.cs index 9565c6e1c..033997bfb 100644 --- a/src/tests/Microsoft.Diagnostics.NETCore.Client/EventPipeSessionTests.cs +++ b/src/tests/Microsoft.Diagnostics.NETCore.Client/EventPipeSessionTests.cs @@ -80,8 +80,9 @@ namespace Microsoft.Diagnostics.NETCore.Client } catch (Exception e) { + // This exception can happen if the target process exits while EventPipeEventSource is in the middle of reading from the pipe. Console.WriteLine("Error encountered while processing events"); - Assert.Equal("", e.ToString()); + Console.WriteLine(e.ToString()); } finally {