Skip to content

Commit 1eb058d

Browse files
committed
try to fix test
1 parent e76ffa9 commit 1eb058d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎tests/integration/pull_merge_test.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ type MergeOptions struct {
5252
}
5353

5454
func testPullMerge(t *testing.T, session *TestSession, user, repo, pullnum string, mergeOptions MergeOptions) *httptest.ResponseRecorder {
55+
req := NewRequest(t, "GET", path.Join(user, repo, "pulls", pullnum))
56+
session.MakeRequest(t, req, http.StatusOK)
5557
link := path.Join(user, repo, "pulls", pullnum, "merge")
5658

5759
options := map[string]string{
@@ -63,7 +65,7 @@ func testPullMerge(t *testing.T, session *TestSession, user, repo, pullnum strin
6365
options["delete_branch_after_merge"] = "on"
6466
}
6567

66-
req := NewRequestWithValues(t, "POST", link, options)
68+
req = NewRequestWithValues(t, "POST", link, options)
6769
resp := session.MakeRequest(t, req, http.StatusOK)
6870

6971
respJSON := struct {

0 commit comments

Comments
 (0)