mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 04:56:29 +00:00
tests: Updates and fixes for tests, changing master to main and adding flaky tests marker (#2511)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user