mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 19:00:47 +00:00
correcting a couple of tests (#1331)
This commit is contained in:
@@ -230,7 +230,7 @@ public class RepositoriesClientTests
|
||||
}
|
||||
}
|
||||
|
||||
[PaidAccountTest]
|
||||
[PaidAccountTest(Skip="Paid plans now have unlimited repositories. We shouldn't test this now.")]
|
||||
public async Task ThrowsPrivateRepositoryQuotaExceededExceptionWhenOverQuota()
|
||||
{
|
||||
var github = Helper.GetAuthenticatedClient();
|
||||
|
||||
@@ -357,9 +357,18 @@ public class RepositoryCommentsClientTests
|
||||
|
||||
await _github.Repository.Comment.Delete(_context.RepositoryOwner, _context.RepositoryName, result.Id);
|
||||
|
||||
var retrievedAfter = await _github.Repository.Comment.Get(_context.RepositoryOwner, _context.RepositoryName, result.Id);
|
||||
var notFound = false;
|
||||
|
||||
Assert.Null(retrievedAfter);
|
||||
try
|
||||
{
|
||||
await _github.Repository.Comment.Get(_context.RepositoryOwner, _context.RepositoryName, result.Id);
|
||||
}
|
||||
catch (NotFoundException)
|
||||
{
|
||||
notFound = true;
|
||||
}
|
||||
|
||||
Assert.True(notFound);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
Reference in New Issue
Block a user