diff options
Diffstat (limited to 'tests/integration/pull_update_test.go')
-rw-r--r-- | tests/integration/pull_update_test.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/integration/pull_update_test.go b/tests/integration/pull_update_test.go index fa56cec485..80c55042db 100644 --- a/tests/integration/pull_update_test.go +++ b/tests/integration/pull_update_test.go @@ -6,6 +6,7 @@ package integration import ( "net/http" "net/url" + "strings" "testing" "time" @@ -104,9 +105,9 @@ func createOutdatedPR(t *testing.T, actor, forkOrg *user_model.User) *issues_mod _, err = files_service.ChangeRepoFiles(git.DefaultContext, baseRepo, actor, &files_service.ChangeRepoFilesOptions{ Files: []*files_service.ChangeRepoFile{ { - Operation: "create", - TreePath: "File_A", - Content: "File A", + Operation: "create", + TreePath: "File_A", + ContentReader: strings.NewReader("File A"), }, }, Message: "Add File A", @@ -131,9 +132,9 @@ func createOutdatedPR(t *testing.T, actor, forkOrg *user_model.User) *issues_mod _, err = files_service.ChangeRepoFiles(git.DefaultContext, headRepo, actor, &files_service.ChangeRepoFilesOptions{ Files: []*files_service.ChangeRepoFile{ { - Operation: "create", - TreePath: "File_B", - Content: "File B", + Operation: "create", + TreePath: "File_B", + ContentReader: strings.NewReader("File B"), }, }, Message: "Add File on PR branch", |