Skip to content

Commit

Permalink
[dotnet] fix bug preventing test server process from being killed whe…
Browse files Browse the repository at this point in the history
…n quitquitquit fails
  • Loading branch information
titusfortner committed May 29, 2024
1 parent 6785dac commit 1b827c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dotnet/test/common/Environment/TestWebServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,14 @@ public void Stop()
{
using (var httpClient = new HttpClient())
{
using (var quitResponse = httpClient.GetAsync(EnvironmentManager.Instance.UrlBuilder.LocalWhereIs("quitquitquit")).GetAwaiter().GetResult())
try
{
using (httpClient.GetAsync(EnvironmentManager.Instance.UrlBuilder.LocalWhereIs("quitquitquit")).GetAwaiter().GetResult())
{

}
}
catch (HttpRequestException)
{

}
Expand Down

0 comments on commit 1b827c2

Please sign in to comment.