mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-08 12:43:19 +02: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);
|
request.RequestTimeout = new TimeSpan(0, 0, 5);
|
||||||
|
|
||||||
Assert.Throws<WebException>(() => Subject.Execute(request));
|
Assert.ThrowsAsync<WebException>(async () => await Subject.ExecuteAsync(request));
|
||||||
|
|
||||||
ExceptionVerification.ExpectedErrors(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue