aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/pull_status_test.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-06-19 16:25:36 +0800
committerGitHub <noreply@github.com>2023-06-19 08:25:36 +0000
commitb4e4b7ad51e4c52a42eb114c9a70b4383f1871ef (patch)
treec61787edaab0b8a31ea3f852302fdb4d44821567 /tests/integration/pull_status_test.go
parentc09d0b4952c351dbd9c71b9fe83c76cfd3c4f9d5 (diff)
downloadgitea-b4e4b7ad51e4c52a42eb114c9a70b4383f1871ef.tar.gz
gitea-b4e4b7ad51e4c52a42eb114c9a70b4383f1871ef.zip
Make backend code respond correct JSON when creating PR (#25353)
Fix #25351
Diffstat (limited to 'tests/integration/pull_status_test.go')
-rw-r--r--tests/integration/pull_status_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/pull_status_test.go b/tests/integration/pull_status_test.go
index 0bdb80ecbf..6a6fd2e859 100644
--- a/tests/integration/pull_status_test.go
+++ b/tests/integration/pull_status_test.go
@@ -30,7 +30,7 @@ func TestPullCreate_CommitStatus(t *testing.T) {
"title": "pull request from status1",
},
)
- session.MakeRequest(t, req, http.StatusSeeOther)
+ session.MakeRequest(t, req, http.StatusOK)
req = NewRequest(t, "GET", "/user1/repo1/pulls")
resp := session.MakeRequest(t, req, http.StatusOK)
@@ -127,7 +127,7 @@ func TestPullCreate_EmptyChangesWithDifferentCommits(t *testing.T) {
"title": "pull request from status1",
},
)
- session.MakeRequest(t, req, http.StatusSeeOther)
+ session.MakeRequest(t, req, http.StatusOK)
req = NewRequest(t, "GET", "/user1/repo1/pulls/1")
resp := session.MakeRequest(t, req, http.StatusOK)
@@ -150,7 +150,7 @@ func TestPullCreate_EmptyChangesWithSameCommits(t *testing.T) {
"title": "pull request from status1",
},
)
- session.MakeRequest(t, req, http.StatusSeeOther)
+ session.MakeRequest(t, req, http.StatusOK)
req = NewRequest(t, "GET", "/user1/repo1/pulls/1")
resp := session.MakeRequest(t, req, http.StatusOK)
doc := NewHTMLParser(t, resp.Body)