@@ -17,7 +17,7 @@ import (
1717)
1818
1919func 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 //
2121 downloader := NewGithubDownloaderV3 (context .Background (), "https://github.com" , "" , "" , os .Getenv ("GITHUB_READ_TOKEN" ), "go-gitea" , "test_repo" )
2222 err := downloader .RefreshRate ()
2323 assert .NoError (t , err )
@@ -364,7 +364,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
364364 ReviewerID : 165205 ,
365365 ReviewerName : "lafriks" ,
366366 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 ),
368368 State : base .ReviewStateApproved ,
369369 },
370370 }, reviews )
@@ -378,7 +378,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
378378 ReviewerID : 81045 ,
379379 ReviewerName : "lunny" ,
380380 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 ),
382382 State : base .ReviewStateApproved ,
383383 Comments : []* base.ReviewComment {
384384 {
@@ -389,8 +389,8 @@ func TestGitHubDownloadRepo(t *testing.T) {
389389 Position : 3 ,
390390 CommitID : "2be9101c543658591222acbee3eb799edfc3853d" ,
391391 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 ),
394394 },
395395 },
396396 },
@@ -400,7 +400,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
400400 ReviewerID : 81045 ,
401401 ReviewerName : "lunny" ,
402402 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 ),
404404 State : base .ReviewStateChangesRequested ,
405405 Content : "Don't add more reviews" ,
406406 },
@@ -410,7 +410,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
410410 ReviewerID : 81045 ,
411411 ReviewerName : "lunny" ,
412412 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 ),
414414 State : base .ReviewStateCommented ,
415415 Comments : []* base.ReviewComment {
416416 {
@@ -421,8 +421,8 @@ func TestGitHubDownloadRepo(t *testing.T) {
421421 Position : 4 ,
422422 CommitID : "2be9101c543658591222acbee3eb799edfc3853d" ,
423423 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 ),
426426 },
427427 },
428428 },
0 commit comments