Fix ThrowsAsync tests that were not being awaited (#1838)

* Fix ThrowsAsync tests that were not being awaited

* fix for consistency
This commit is contained in:
Ryan Gribble
2018-07-02 23:05:59 +10:00
committed by GitHub
parent ef1994d86f
commit a432b15dce
3 changed files with 4 additions and 4 deletions
@@ -68,8 +68,8 @@ namespace Octokit.Tests.Integration.Clients
note,
new[] { "user" });
var error = Assert.ThrowsAsync<ForbiddenException>(() => github.Authorization.Create(newAuthorization));
Assert.True(error.Result.Message.Contains("username and password Basic Auth"));
var error = await Assert.ThrowsAsync<ForbiddenException>(() => github.Authorization.Create(newAuthorization));
Assert.True(error.Message.Contains("username and password Basic Auth"));
}
[BasicAuthenticationTest(Skip = "See https://github.com/octokit/octokit.net/issues/1000 for issue to investigate this further")]