summaryrefslogtreecommitdiffstats
path: root/integrations/pull_create_test.go
diff options
context:
space:
mode:
authorMura Li <typeless@users.noreply.github.com>2017-06-15 19:20:39 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-06-15 19:20:39 +0800
commit01322af2e8e213209cddff5356b317ce4875fca3 (patch)
treeed80f658b6bcabdfa341ae529e5491545b586227 /integrations/pull_create_test.go
parent13f0e1255af5eeb3d6d24ee2c3a169dab427a2dc (diff)
downloadgitea-01322af2e8e213209cddff5356b317ce4875fca3.tar.gz
gitea-01322af2e8e213209cddff5356b317ce4875fca3.zip
Add integration test for pull-request merge (#1912)
Diffstat (limited to 'integrations/pull_create_test.go')
-rw-r--r--integrations/pull_create_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/integrations/pull_create_test.go b/integrations/pull_create_test.go
index f3d4472981..ac8df33c6a 100644
--- a/integrations/pull_create_test.go
+++ b/integrations/pull_create_test.go
@@ -14,7 +14,7 @@ import (
"github.com/stretchr/testify/assert"
)
-func testPullCreate(t *testing.T, session *TestSession, user, repo, branch string) {
+func testPullCreate(t *testing.T, session *TestSession, user, repo, branch string) *TestResponse {
req := NewRequest(t, "GET", path.Join(user, repo))
resp := session.MakeRequest(t, req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
@@ -45,6 +45,8 @@ func testPullCreate(t *testing.T, session *TestSession, user, repo, branch strin
assert.EqualValues(t, http.StatusFound, resp.HeaderCode)
//TODO check the redirected URL
+
+ return resp
}
func TestPullCreate(t *testing.T) {