fix tests

This commit is contained in:
Lunny Xiao 2017-12-12 23:22:07 +08:00
parent facfbf9200
commit ff204a797f
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -150,7 +150,7 @@ func testEditFileToNewBranch(t *testing.T, session *TestSession, user, repo, bra
return resp
}
func testEditFileToNewBranchAndSendPull(t *testing.T, session *TestSession, user, repo, branch, targetBranch, filePath, newContent string) *TestResponse {
func testEditFileToNewBranchAndSendPull(t *testing.T, session *TestSession, user, repo, branch, targetBranch, filePath, newContent string) *httptest.ResponseRecorder {
testEditFileToNewBranch(t, session, user, repo, branch, targetBranch, filePath, newContent)
url := path.Join(user, repo, "compare", branch+"..."+targetBranch)