Skip to content

Commit 775dd72

Browse files
committed
use await style from PR feedback
1 parent 27d2d01 commit 775dd72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/test/common/Environment/RemoteSeleniumServer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public async Task StopAsync()
8888
{
8989
using (var httpClient = new HttpClient())
9090
{
91-
var shutDownTask = httpClient.GetAsync("http://localhost:6000/selenium-server/driver?cmd=shutDownSeleniumServer");
92-
await ((Task)shutDownTask).ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing);
91+
await ((Task)httpClient.GetAsync("http://localhost:6000/selenium-server/driver?cmd=shutDownSeleniumServer"))
92+
.ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing);
9393
}
9494

9595
webserverProcess.WaitForExit(10000);

0 commit comments

Comments
 (0)