diff options
author | Mura Li <typeless@users.noreply.github.com> | 2017-06-15 19:20:39 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-15 19:20:39 +0800 |
commit | 01322af2e8e213209cddff5356b317ce4875fca3 (patch) | |
tree | ed80f658b6bcabdfa341ae529e5491545b586227 /integrations/repo_fork_test.go | |
parent | 13f0e1255af5eeb3d6d24ee2c3a169dab427a2dc (diff) | |
download | gitea-01322af2e8e213209cddff5356b317ce4875fca3.tar.gz gitea-01322af2e8e213209cddff5356b317ce4875fca3.zip |
Add integration test for pull-request merge (#1912)
Diffstat (limited to 'integrations/repo_fork_test.go')
-rw-r--r-- | integrations/repo_fork_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/integrations/repo_fork_test.go b/integrations/repo_fork_test.go index 59a15d8483..a0cf85a01e 100644 --- a/integrations/repo_fork_test.go +++ b/integrations/repo_fork_test.go @@ -13,7 +13,7 @@ import ( "github.com/stretchr/testify/assert" ) -func testRepoFork(t *testing.T, session *TestSession) { +func testRepoFork(t *testing.T, session *TestSession) *TestResponse { // Step0: check the existence of the to-fork repo req := NewRequest(t, "GET", "/user1/repo1") resp := session.MakeRequest(t, req) @@ -53,6 +53,8 @@ func testRepoFork(t *testing.T, session *TestSession) { req = NewRequest(t, "GET", "/user1/repo1") resp = session.MakeRequest(t, req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) + + return resp } func TestRepoFork(t *testing.T) { |