Use async for http client test

pull/1889/head
Bogdan 1 year ago
parent 1a307b8e21
commit b088febbc4

@ -135,9 +135,7 @@ namespace NzbDrone.Common.Test.Http
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…
Cancel
Save