tests: Updates and fixes for tests, changing master to main and adding flaky tests marker (#2511)

This commit is contained in:
Chris Simpson
2022-07-25 16:36:09 +01:00
committed by GitHub
parent 9af552eeaa
commit 5fe3ea82f0
36 changed files with 494 additions and 491 deletions
@@ -17,7 +17,7 @@ public class TreeClientTests : IDisposable
_fixture = _github.Git.Tree;
_context = _github.CreateRepositoryContext("public-repo").Result;
_context = _github.CreateRepositoryContextWithAutoInit("public-repo").Result;
}
[IntegrationTest]
@@ -73,7 +73,7 @@ public class TreeClientTests : IDisposable
[IntegrationTest]
public async Task CanGetATree()
{
var result = await _fixture.Get("octokit", "octokit.net", "master");
var result = await _fixture.Get("octokit", "octokit.net", "main");
Assert.NotNull(result);
Assert.NotEmpty(result.Tree);
@@ -82,7 +82,7 @@ public class TreeClientTests : IDisposable
[IntegrationTest]
public async Task CanGetATreeWithRepositoryId()
{
var result = await _fixture.Get(1, "master");
var result = await _fixture.Get(1, "main");
Assert.NotNull(result);
Assert.NotEmpty(result.Tree);