mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
tests: Updates and fixes for tests, changing master to main and adding flaky tests marker (#2511)
This commit is contained in:
@@ -29,7 +29,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
using (var repoContext = await _github.CreateRepositoryContext(new NewRepository(Helper.MakeNameWithTimestamp("public-repo")) { AutoInit = true }))
|
||||
{
|
||||
// Create a new feature branch
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "master");
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "main");
|
||||
var featureBranch = await Helper.CreateFeatureBranch(repoContext.RepositoryOwner, repoContext.RepositoryName, headCommit.Sha, "my-feature");
|
||||
|
||||
// Create a check run for the feature branch
|
||||
@@ -51,7 +51,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
using (var repoContext = await _github.CreateRepositoryContext(new NewRepository(Helper.MakeNameWithTimestamp("public-repo")) { AutoInit = true }))
|
||||
{
|
||||
// Create a new feature branch
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "master");
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "main");
|
||||
var featureBranch = await Helper.CreateFeatureBranch(repoContext.RepositoryOwner, repoContext.RepositoryName, headCommit.Sha, "my-feature");
|
||||
|
||||
// Create a check run for the feature branch
|
||||
@@ -87,7 +87,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
using (var repoContext = await _github.CreateRepositoryContext(new NewRepository(Helper.MakeNameWithTimestamp("public-repo")) { AutoInit = true }))
|
||||
{
|
||||
// Create a new feature branch
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "master");
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "main");
|
||||
var featureBranch = await Helper.CreateFeatureBranch(repoContext.RepositoryOwner, repoContext.RepositoryName, headCommit.Sha, "my-feature");
|
||||
|
||||
// Create a check run for the feature branch
|
||||
@@ -119,7 +119,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
using (var repoContext = await _github.CreateRepositoryContext(new NewRepository(Helper.MakeNameWithTimestamp("public-repo")) { AutoInit = true }))
|
||||
{
|
||||
// Create a new feature branch
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "master");
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "main");
|
||||
var featureBranch = await Helper.CreateFeatureBranch(repoContext.RepositoryOwner, repoContext.RepositoryName, headCommit.Sha, "my-feature");
|
||||
|
||||
// Create a check run for the feature branch
|
||||
@@ -165,7 +165,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
using (var repoContext = await _github.CreateRepositoryContext(new NewRepository(Helper.MakeNameWithTimestamp("public-repo")) { AutoInit = true }))
|
||||
{
|
||||
// Create a new feature branch
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "master");
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "main");
|
||||
var featureBranch = await Helper.CreateFeatureBranch(repoContext.RepositoryOwner, repoContext.RepositoryName, headCommit.Sha, "my-feature");
|
||||
|
||||
// Create a check run for the feature branch
|
||||
@@ -200,7 +200,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
using (var repoContext = await _github.CreateRepositoryContext(new NewRepository(Helper.MakeNameWithTimestamp("public-repo")) { AutoInit = true }))
|
||||
{
|
||||
// Create a new feature branch
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "master");
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "main");
|
||||
var featureBranch = await Helper.CreateFeatureBranch(repoContext.RepositoryOwner, repoContext.RepositoryName, headCommit.Sha, "my-feature");
|
||||
|
||||
// Create a check run for the feature branch
|
||||
@@ -249,7 +249,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
using (var repoContext = await _github.CreateRepositoryContext(new NewRepository(Helper.MakeNameWithTimestamp("public-repo")) { AutoInit = true }))
|
||||
{
|
||||
// Create a new feature branch
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "master");
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "main");
|
||||
var featureBranch = await Helper.CreateFeatureBranch(repoContext.RepositoryOwner, repoContext.RepositoryName, headCommit.Sha, "my-feature");
|
||||
|
||||
// Create a check run for the feature branch
|
||||
@@ -284,7 +284,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
using (var repoContext = await _github.CreateRepositoryContext(new NewRepository(Helper.MakeNameWithTimestamp("public-repo")) { AutoInit = true }))
|
||||
{
|
||||
// Create a new feature branch
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "master");
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "main");
|
||||
var featureBranch = await Helper.CreateFeatureBranch(repoContext.RepositoryOwner, repoContext.RepositoryName, headCommit.Sha, "my-feature");
|
||||
|
||||
// Create a check run for the feature branch
|
||||
@@ -401,7 +401,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
using (var repoContext = await _github.CreateRepositoryContext(new NewRepository(Helper.MakeNameWithTimestamp("public-repo")) { AutoInit = true }))
|
||||
{
|
||||
// Create a new feature branch
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "master");
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "main");
|
||||
var featureBranch = await Helper.CreateFeatureBranch(repoContext.RepositoryOwner, repoContext.RepositoryName, headCommit.Sha, "my-feature");
|
||||
|
||||
// Create a check run for the feature branch
|
||||
@@ -434,7 +434,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
using (var repoContext = await _github.CreateRepositoryContext(new NewRepository(Helper.MakeNameWithTimestamp("public-repo")) { AutoInit = true }))
|
||||
{
|
||||
// Create a new feature branch
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "master");
|
||||
var headCommit = await _github.Repository.Commit.Get(repoContext.RepositoryId, "main");
|
||||
var featureBranch = await Helper.CreateFeatureBranch(repoContext.RepositoryOwner, repoContext.RepositoryName, headCommit.Sha, "my-feature");
|
||||
|
||||
// Create a check run for the feature branch
|
||||
|
||||
Reference in New Issue
Block a user