Skip to content

Commit 4df4d45

Browse files
committed
fix test
1 parent 64db368 commit 4df4d45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/api_repo_file_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ func createOrReplaceFileInBranch(user *user_model.User, repo *repo_model.Reposit
6969

7070
// TODO: replace all usages of this function with testCreateFileInBranch or testCreateFile
7171
func createFile(user *user_model.User, repo *repo_model.Repository, treePath string, optContent ...string) (*api.FilesResponse, error) {
72-
content := util.OptionalArg(optContent, "file content "+treePath)
72+
content := util.OptionalArg(optContent, "This is a NEW file") // some tests need this default content because its SHA is hardcoded
7373
return createFileInBranch(user, repo, createFileInBranchOptions{}, map[string]string{treePath: content})
7474
}

0 commit comments

Comments
 (0)