fix tests
This commit is contained in:
parent
89535ba368
commit
dbf4ffa1e4
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user