Skip to content

Commit

Permalink
Update tests to default to Passing status when no statusCheckRollup
Browse files Browse the repository at this point in the history
  • Loading branch information
Skipants authored and ejoffe committed Aug 23, 2024
1 parent 039898b commit 2c5a21f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions github/githubclient/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestMatchPullRequestStack(t *testing.T) {
{CommitID: "2", CommitHash: "2", Body: "commit-id:2"},
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
},
Expand Down Expand Up @@ -122,7 +122,7 @@ func TestMatchPullRequestStack(t *testing.T) {
{CommitID: "2", CommitHash: "2", Body: "commit-id:2"},
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
{
Expand All @@ -138,7 +138,7 @@ func TestMatchPullRequestStack(t *testing.T) {
{CommitID: "3", CommitHash: "3", Body: "commit-id:3"},
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
},
Expand Down Expand Up @@ -187,7 +187,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "1",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
},
Expand Down Expand Up @@ -237,7 +237,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "1",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
{
Expand All @@ -249,7 +249,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "2",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
},
Expand Down Expand Up @@ -331,7 +331,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "1",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
{
Expand All @@ -343,7 +343,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "2",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
},
Expand Down Expand Up @@ -404,7 +404,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "1",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
{
Expand All @@ -416,7 +416,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "2",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
{
Expand All @@ -428,7 +428,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "3",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
},
Expand Down Expand Up @@ -489,7 +489,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "1",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},

Expand All @@ -502,7 +502,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "2",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
{
Expand All @@ -514,7 +514,7 @@ func TestMatchPullRequestStack(t *testing.T) {
CommitHash: "3",
},
MergeStatus: github.PullRequestMergeStatus{
ChecksPass: github.CheckStatusFail,
ChecksPass: github.CheckStatusPass,
},
},
},
Expand Down

0 comments on commit 2c5a21f

Please sign in to comment.