We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64db368 commit 4df4d45Copy full SHA for 4df4d45
tests/integration/api_repo_file_helpers.go
@@ -69,6 +69,6 @@ func createOrReplaceFileInBranch(user *user_model.User, repo *repo_model.Reposit
69
70
// TODO: replace all usages of this function with testCreateFileInBranch or testCreateFile
71
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)
+ content := util.OptionalArg(optContent, "This is a NEW file") // some tests need this default content because its SHA is hardcoded
73
return createFileInBranch(user, repo, createFileInBranchOptions{}, map[string]string{treePath: content})
74
}
0 commit comments