mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +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:
@@ -92,7 +92,7 @@ VO/+BCBsaoT4g1FFOmJhbBAD3G72yslBnUJmqKP/39pi
|
||||
var key = await github.User.GpgKey.Create(new NewGpgKey(publicKey));
|
||||
Assert.NotNull(key);
|
||||
|
||||
Assert.ThrowsAsync<ApiValidationException>(async () => await github.User.GpgKey.Create(new NewGpgKey(publicKey)));
|
||||
await Assert.ThrowsAsync<ApiValidationException>(async () => await github.User.GpgKey.Create(new NewGpgKey(publicKey)));
|
||||
|
||||
await github.User.GpgKey.Delete(key.Id);
|
||||
var keys = await github.User.GpgKey.GetAllForCurrent();
|
||||
|
||||
Reference in New Issue
Block a user