fix tests

This commit is contained in:
Lunny Xiao 2017-11-26 14:15:37 +08:00
parent dbf4ffa1e4
commit 9fec58c67c
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -154,12 +154,7 @@ func testEditFileToNewBranchAndSendPull(t *testing.T, session *TestSession, user
testEditFileToNewBranch(t, session, user, repo, branch, targetBranch, filePath, newContent)
url := path.Join(user, repo, "compare", branch+"..."+targetBranch)
req := NewRequest(t, "GET", url)
resp := session.MakeRequest(t, req, http.StatusOK)
htmlDoc := NewHTMLParser(t, resp.Body)
req = NewRequestWithValues(t, "POST", url,
req := NewRequestWithValues(t, "POST", url,
map[string]string{
"_csrf": GetCSRF(t, session, url),
"title": "pull request from " + targetBranch,