diff --git a/backend/controllers/projects_test.go b/backend/controllers/projects_test.go index 2ab478e0a..a4ace792b 100644 --- a/backend/controllers/projects_test.go +++ b/backend/controllers/projects_test.go @@ -17,6 +17,12 @@ func TestAutomergeWhenBatchIsSuccessfulStatus(t *testing.T) { defer teardownSuite(t) isMergeCalled := false mockedHTTPClient := mock.NewMockedHTTPClient( + mock.WithRequestMatch( + mock.GetReposIssuesByOwnerByRepoByIssueNumber, + github.Issue{ + Number: github.Int(2), + PullRequestLinks: &github.PullRequestLinks{}, + }), mock.WithRequestMatch( mock.GetReposPullsByOwnerByRepoByPullNumber, github.PullRequest{