mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 22:07:32 -04:00
Use async for http client test
This commit is contained in:
parent
1a307b8e21
commit
b088febbc4
1 changed files with 1 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue