diff --git a/src/tests/Microsoft.Diagnostics.NETCore.Client/GetPublishedProcessesTests.cs b/src/tests/Microsoft.Diagnostics.NETCore.Client/GetPublishedProcessesTests.cs index bb31623b62..e2945f73a3 100644 --- a/src/tests/Microsoft.Diagnostics.NETCore.Client/GetPublishedProcessesTests.cs +++ b/src/tests/Microsoft.Diagnostics.NETCore.Client/GetPublishedProcessesTests.cs @@ -28,7 +28,7 @@ public void PublishedProcessTest1() TestRunner runner = new TestRunner(CommonHelper.GetTraceePath(), output); runner.Start(3000); List publishedProcesses = new List(DiagnosticsClient.GetPublishedProcesses()); - foreach(int p in publishedProcesses) + foreach (int p in publishedProcesses) { output.WriteLine($"[{DateTime.Now.ToString()}] Saw published process {p}"); } @@ -45,11 +45,12 @@ public void MultiplePublishedProcessTest() for (var i = 0; i < 3; i++) { runner[i] = new TestRunner(CommonHelper.GetTraceePath(), output); - runner[i].Start(500); + runner[i].Start(); pids[i] = runner[i].Pid; } + System.Threading.Thread.Sleep(2000); List publishedProcesses = new List(DiagnosticsClient.GetPublishedProcesses()); - foreach(int p in publishedProcesses) + foreach (int p in publishedProcesses) { output.WriteLine($"[{DateTime.Now.ToString()}] Saw published process {p}"); }