@@ -17,7 +17,7 @@ import (
17
17
)
18
18
19
19
func TestGitHubDownloadRepo (t * testing.T ) {
20
- GithubLimitRateRemaining = 3 //Wait at 3 remaining since we could have 3 CI in //
20
+ GithubLimitRateRemaining = 3 // Wait at 3 remaining since we could have 3 CI in //
21
21
downloader := NewGithubDownloaderV3 (context .Background (), "https://github.com" , "" , "" , os .Getenv ("GITHUB_READ_TOKEN" ), "go-gitea" , "test_repo" )
22
22
err := downloader .RefreshRate ()
23
23
assert .NoError (t , err )
@@ -364,7 +364,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
364
364
ReviewerID : 165205 ,
365
365
ReviewerName : "lafriks" ,
366
366
CommitID : "076160cf0b039f13e5eff19619932d181269414b" ,
367
- CreatedAt : time .Date (2019 , 11 , 12 , 21 , 38 , 00 , 0 , time .UTC ),
367
+ CreatedAt : time .Date (2019 , 11 , 12 , 21 , 38 , 0 , 0 , time .UTC ),
368
368
State : base .ReviewStateApproved ,
369
369
},
370
370
}, reviews )
@@ -378,7 +378,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
378
378
ReviewerID : 81045 ,
379
379
ReviewerName : "lunny" ,
380
380
CommitID : "2be9101c543658591222acbee3eb799edfc3853d" ,
381
- CreatedAt : time .Date (2020 , 01 , 04 , 05 , 33 , 18 , 0 , time .UTC ),
381
+ CreatedAt : time .Date (2020 , 1 , 4 , 5 , 33 , 18 , 0 , time .UTC ),
382
382
State : base .ReviewStateApproved ,
383
383
Comments : []* base.ReviewComment {
384
384
{
@@ -389,8 +389,8 @@ func TestGitHubDownloadRepo(t *testing.T) {
389
389
Position : 3 ,
390
390
CommitID : "2be9101c543658591222acbee3eb799edfc3853d" ,
391
391
PosterID : 81045 ,
392
- CreatedAt : time .Date (2020 , 01 , 04 , 05 , 33 , 06 , 0 , time .UTC ),
393
- UpdatedAt : time .Date (2020 , 01 , 04 , 05 , 33 , 18 , 0 , time .UTC ),
392
+ CreatedAt : time .Date (2020 , 1 , 4 , 5 , 33 , 6 , 0 , time .UTC ),
393
+ UpdatedAt : time .Date (2020 , 1 , 4 , 5 , 33 , 18 , 0 , time .UTC ),
394
394
},
395
395
},
396
396
},
@@ -400,7 +400,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
400
400
ReviewerID : 81045 ,
401
401
ReviewerName : "lunny" ,
402
402
CommitID : "2be9101c543658591222acbee3eb799edfc3853d" ,
403
- CreatedAt : time .Date (2020 , 01 , 04 , 06 , 07 , 06 , 0 , time .UTC ),
403
+ CreatedAt : time .Date (2020 , 1 , 4 , 6 , 7 , 6 , 0 , time .UTC ),
404
404
State : base .ReviewStateChangesRequested ,
405
405
Content : "Don't add more reviews" ,
406
406
},
@@ -410,7 +410,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
410
410
ReviewerID : 81045 ,
411
411
ReviewerName : "lunny" ,
412
412
CommitID : "2be9101c543658591222acbee3eb799edfc3853d" ,
413
- CreatedAt : time .Date (2020 , 01 , 04 , 11 , 21 , 41 , 0 , time .UTC ),
413
+ CreatedAt : time .Date (2020 , 1 , 4 , 11 , 21 , 41 , 0 , time .UTC ),
414
414
State : base .ReviewStateCommented ,
415
415
Comments : []* base.ReviewComment {
416
416
{
@@ -421,8 +421,8 @@ func TestGitHubDownloadRepo(t *testing.T) {
421
421
Position : 4 ,
422
422
CommitID : "2be9101c543658591222acbee3eb799edfc3853d" ,
423
423
PosterID : 81045 ,
424
- CreatedAt : time .Date (2020 , 01 , 04 , 11 , 21 , 41 , 0 , time .UTC ),
425
- UpdatedAt : time .Date (2020 , 01 , 04 , 11 , 21 , 41 , 0 , time .UTC ),
424
+ CreatedAt : time .Date (2020 , 1 , 4 , 11 , 21 , 41 , 0 , time .UTC ),
425
+ UpdatedAt : time .Date (2020 , 1 , 4 , 11 , 21 , 41 , 0 , time .UTC ),
426
426
},
427
427
},
428
428
},
0 commit comments