Skip to content

Commit

Permalink
Attempting to stabilize TestHttpServer tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlanch committed Sep 27, 2021
1 parent 38ee521 commit 49f66c1
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 49f66c1

Please sign in to comment.