Fix diagnostics client test hang in CentOS (#1433)
authorSung Yoon Whang <suwhang@microsoft.com>
Fri, 14 Aug 2020 21:20:55 +0000 (14:20 -0700)
committerGitHub <noreply@github.com>
Fri, 14 Aug 2020 21:20:55 +0000 (21:20 +0000)
* Try to repro test hang in CentOS release

* Try removing incorrect assert

* Add comment

src/tests/Microsoft.Diagnostics.NETCore.Client/EventPipeSessionTests.cs

index 9565c6e1c723ed7b12cdd1b0777208a1218f6385..033997bfb1e8f0bf0582f5416caa388d64917f54 100644 (file)
@@ -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
                     {