Skip to content

Commit

Permalink
Make MultiplePublishedProcessTest more stable (#701)
Browse files Browse the repository at this point in the history
* Make MultiplePublishedProcessTest more stable
  • Loading branch information
sywhang authored Dec 17, 2019
1 parent 653f155 commit 4d2a8a4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void PublishedProcessTest1()
TestRunner runner = new TestRunner(CommonHelper.GetTraceePath(), output);
runner.Start(3000);
List<int> publishedProcesses = new List<int>(DiagnosticsClient.GetPublishedProcesses());
foreach(int p in publishedProcesses)
foreach (int p in publishedProcesses)
{
output.WriteLine($"[{DateTime.Now.ToString()}] Saw published process {p}");
}
Expand All @@ -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<int> publishedProcesses = new List<int>(DiagnosticsClient.GetPublishedProcesses());
foreach(int p in publishedProcesses)
foreach (int p in publishedProcesses)
{
output.WriteLine($"[{DateTime.Now.ToString()}] Saw published process {p}");
}
Expand Down

0 comments on commit 4d2a8a4

Please sign in to comment.