From f92894010a667829ec0923531494aa18c07d5cfd Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Fri, 7 Oct 2016 12:42:23 +1100 Subject: [PATCH] corrected a couple of tests --- Octokit.Tests.Integration/Clients/GitHubClientTests.cs | 2 +- Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Octokit.Tests.Integration/Clients/GitHubClientTests.cs b/Octokit.Tests.Integration/Clients/GitHubClientTests.cs index 8674c5740e..7526afc763 100644 --- a/Octokit.Tests.Integration/Clients/GitHubClientTests.cs +++ b/Octokit.Tests.Integration/Clients/GitHubClientTests.cs @@ -68,7 +68,7 @@ public async Task CanRetrieveLastApiInfoAcceptedOauth() var result = github.GetLastApiInfo(); Assert.True(result.Links.Count == 0); - Assert.True(result.AcceptedOauthScopes.Count > 0); + Assert.True(result.AcceptedOauthScopes.Count == 0); Assert.True(result.OauthScopes.Count > 0); Assert.False(string.IsNullOrEmpty(result.Etag)); Assert.True(result.RateLimit.Limit > 0); diff --git a/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs b/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs index b888049112..94f5112b0f 100644 --- a/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs +++ b/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs @@ -217,7 +217,7 @@ public async Task CanListIssueEventsForARepository() Assert.NotNull(reopened1); // close issue2 - var closed2 = _issuesClient.Update(_context.RepositoryOwner, _context.RepositoryName, issue2.Number, new IssueUpdate { State = ItemState.Closed }); + var closed2 = await _issuesClient.Update(_context.RepositoryOwner, _context.RepositoryName, issue2.Number, new IssueUpdate { State = ItemState.Closed }); Assert.NotNull(closed2); var issueEvents = await _issuesEventsClient.GetAllForRepository(_context.RepositoryOwner, _context.RepositoryName);