From ba9de4af922a31e53116299780372aa5e4502e8e Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Wed, 7 Jul 2021 13:42:37 +1000 Subject: [PATCH] Update SeleniumStandaloneServer.cs --- .../Infrastructure/SeleniumStandaloneServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Blazorise.E2ETests/Infrastructure/SeleniumStandaloneServer.cs b/Tests/Blazorise.E2ETests/Infrastructure/SeleniumStandaloneServer.cs index 8548c4a406..2a0c87c36e 100644 --- a/Tests/Blazorise.E2ETests/Infrastructure/SeleniumStandaloneServer.cs +++ b/Tests/Blazorise.E2ETests/Infrastructure/SeleniumStandaloneServer.cs @@ -86,7 +86,7 @@ void LogOutput(object sender, DataReceivedEventArgs e) var waitForStart = Task.Run(async () => { - var httpClient = new HttpClient + using var httpClient = new HttpClient { Timeout = TimeSpan.FromSeconds(1), }; @@ -107,7 +107,7 @@ void LogOutput(object sender, DataReceivedEventArgs e) { } - await Task.Delay(1000); + await Task.Delay(1000); } });