diff options
author | 6543 <6543@obermui.de> | 2019-12-09 14:11:24 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-09 21:11:24 +0800 |
commit | 7f0d7c0a17240db5be3fc5755a751d047af5faa6 (patch) | |
tree | 9a3d25c271604ce3d3dac551e65d1a05b1f3966d /integrations/api_repo_file_create_test.go | |
parent | c34fdf7e33de3a31247e54910e2fb6e81aef4fd8 (diff) | |
download | gitea-7f0d7c0a17240db5be3fc5755a751d047af5faa6.tar.gz gitea-7f0d7c0a17240db5be3fc5755a751d047af5faa6.zip |
File Edit: Author/Committer interchanged [BugFix] (#9297)
* simple fix
* fix test too
* repair more twists
use same sequence: first Author, then Commiter
Diffstat (limited to 'integrations/api_repo_file_create_test.go')
-rw-r--r-- | integrations/api_repo_file_create_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/integrations/api_repo_file_create_test.go b/integrations/api_repo_file_create_test.go index eb437edf03..53042b5d0a 100644 --- a/integrations/api_repo_file_create_test.go +++ b/integrations/api_repo_file_create_test.go @@ -30,12 +30,12 @@ func getCreateFileOptions() api.CreateFileOptions { NewBranchName: "master", Message: "Making this new file new/file.txt", Author: api.Identity{ - Name: "John Doe", - Email: "johndoe@example.com", + Name: "Anne Doe", + Email: "annedoe@example.com", }, Committer: api.Identity{ - Name: "Jane Doe", - Email: "janedoe@example.com", + Name: "John Doe", + Email: "johndoe@example.com", }, }, Content: contentEncoded, @@ -77,8 +77,8 @@ func getExpectedFileResponseForCreate(commitID, treePath string) *api.FileRespon HTMLURL: setting.AppURL + "user2/repo1/commit/" + commitID, Author: &api.CommitUser{ Identity: api.Identity{ - Name: "Jane Doe", - Email: "janedoe@example.com", + Name: "Anne Doe", + Email: "annedoe@example.com", }, }, Committer: &api.CommitUser{ |