Skip to content

Commit

Permalink
Add missing wait in one-way latency tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ocoanet committed Feb 14, 2024
1 parent ac7423b commit d610e62
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public void Run(Stopwatch stopwatch, HistogramBase histogram)
ringBuffer[lastS].Value = -1;
ringBuffer.Publish(lastS);

_handler.Completed.Wait();

stopwatch.Stop();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public void Run(Stopwatch stopwatch, HistogramBase histogram)
ringBuffer[lastS].Value = -1;
ringBuffer.Publish(lastS);

_handler.Completed.Wait();

stopwatch.Stop();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public void Run(Stopwatch stopwatch, HistogramBase histogram)
ringBuffer[lastS].Value = -1;
ringBuffer.Publish(lastS);

_handler.Completed.Wait();

stopwatch.Stop();
}

Expand Down

0 comments on commit d610e62

Please sign in to comment.