fix tests

This commit is contained in:
Lunny Xiao 2017-11-26 13:56:51 +08:00
parent 89535ba368
commit dbf4ffa1e4
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -36,7 +36,7 @@ func TestRepoPullsWithStatus(t *testing.T) {
var size = 5
// create some pulls
for i := 0; i < size; i++ {
testEditFileToNewBranchAndSendPull(t, session, "user2", "repo16", "master", fmt.Sprintf("test%d", i), "readme.md")
testEditFileToNewBranchAndSendPull(t, session, "user2", "repo16", "master", fmt.Sprintf("test%d", i), "readme.md", fmt.Sprintf("test%d", i))
}
// look for repo's pulls page