mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
Fix async tests (#1631)
* Fix up Assert.ThrowsAsync tests to actually await the call * ... and it even picked up a missing null check... pay day!
This commit is contained in:
@@ -158,7 +158,7 @@ namespace Octokit.Tests.Http
|
||||
|
||||
var httpRequestMessage = CreateRequest(HttpMethod.Get);
|
||||
|
||||
Assert.ThrowsAsync<InvalidOperationException>(
|
||||
await Assert.ThrowsAsync<InvalidOperationException>(
|
||||
() => adapter.SendAsync(httpRequestMessage, new CancellationToken()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user