Skip to content

Commit

Permalink
Attempting to stabilize TestHttpServer tests. (#2415)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlanch authored Sep 27, 2021
1 parent 38ee521 commit 52559be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/OpenTelemetry.Tests/Shared/TestHttpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public void Dispose()
{
try
{
this.listener?.Stop();
this.listener.Close();
this.httpListenerTask?.Wait();
}
catch (ObjectDisposedException)
{
Expand Down

0 comments on commit 52559be

Please sign in to comment.