diff options
author | 6543 <6543@obermui.de> | 2022-01-05 07:27:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 07:27:53 +0100 |
commit | 0572c78938d3d8287f81f53effc7ffaacd75d3e7 (patch) | |
tree | 7dc1e9d29732332490d5a81c16c5e60cc90616a9 /services/migrations/gitlab_test.go | |
parent | 6da078d61690816643f082b2230c0842660bbf4c (diff) | |
download | gitea-0572c78938d3d8287f81f53effc7ffaacd75d3e7.tar.gz gitea-0572c78938d3d8287f81f53effc7ffaacd75d3e7.zip |
refactoring nits (#18188)
* no octal for time values
* rm artifact from refactoring
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'services/migrations/gitlab_test.go')
-rw-r--r-- | services/migrations/gitlab_test.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/services/migrations/gitlab_test.go b/services/migrations/gitlab_test.go index f6dc7510cb..6b77aa62ef 100644 --- a/services/migrations/gitlab_test.go +++ b/services/migrations/gitlab_test.go @@ -156,7 +156,8 @@ func TestGitlabDownloadRepo(t *testing.T) { UserID: 1241334, UserName: "lafriks", Content: "open_mouth", - }}, + }, + }, Closed: timePtr(time.Date(2019, 11, 28, 8, 46, 23, 275000000, time.UTC)), }, { @@ -204,7 +205,8 @@ func TestGitlabDownloadRepo(t *testing.T) { UserID: 1241334, UserName: "lafriks", Content: "hearts", - }}, + }, + }, Closed: timePtr(time.Date(2019, 11, 28, 8, 45, 44, 959000000, time.UTC)), }, }, issues) @@ -310,13 +312,13 @@ func TestGitlabDownloadRepo(t *testing.T) { { ReviewerID: 4102996, ReviewerName: "zeripath", - CreatedAt: time.Date(2019, 11, 28, 16, 02, 8, 377000000, time.UTC), + CreatedAt: time.Date(2019, 11, 28, 16, 2, 8, 377000000, time.UTC), State: "APPROVED", }, { ReviewerID: 527793, ReviewerName: "axifive", - CreatedAt: time.Date(2019, 11, 28, 16, 02, 8, 377000000, time.UTC), + CreatedAt: time.Date(2019, 11, 28, 16, 2, 8, 377000000, time.UTC), State: "APPROVED", }, }, rvs) @@ -327,7 +329,7 @@ func TestGitlabDownloadRepo(t *testing.T) { { ReviewerID: 4575606, ReviewerName: "real6543", - CreatedAt: time.Date(2020, 04, 19, 19, 24, 21, 108000000, time.UTC), + CreatedAt: time.Date(2020, 4, 19, 19, 24, 21, 108000000, time.UTC), State: "APPROVED", }, }, rvs) |