Use async for http client test

This commit is contained in:
Bogdan
2023-10-10 03:05:16 +03:00
parent 1a307b8e21
commit b088febbc4

View File

@@ -135,9 +135,7 @@ namespace NzbDrone.Common.Test.Http
request.RequestTimeout = new TimeSpan(0, 0, 5);
Assert.Throws<WebException>(() => Subject.Execute(request));
ExceptionVerification.ExpectedErrors(0);
Assert.ThrowsAsync<WebException>(async () => await Subject.ExecuteAsync(request));
}
[Test]