mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-12-27 16:45:47 +01:00
Use async for http client test
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user