mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-01 13:26:56 +01: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 @@ public void should_throw_timeout_request()
|
|||
|
||||
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…
Reference in a new issue