Skip to content

Commit 2027648

Browse files
committed
fix tests
1 parent 06751dd commit 2027648

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

backend/controllers/projects_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ func TestAutomergeWhenBatchIsSuccessfulStatus(t *testing.T) {
1717
defer teardownSuite(t)
1818
isMergeCalled := false
1919
mockedHTTPClient := mock.NewMockedHTTPClient(
20+
mock.WithRequestMatch(
21+
mock.GetReposIssuesByOwnerByRepoByIssueNumber,
22+
github.Issue{
23+
Number: github.Int(2),
24+
PullRequestLinks: &github.PullRequestLinks{},
25+
}),
2026
mock.WithRequestMatch(
2127
mock.GetReposPullsByOwnerByRepoByPullNumber,
2228
github.PullRequest{

0 commit comments

Comments
 (0)