diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-06-30 15:23:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 15:23:49 +0800 |
commit | 09663493543a2ce15fc90fbb3808dda5b87335e5 (patch) | |
tree | e9b2ce99e5f0bb3c3115e129feb8194cb9f20f7f /modules/migrations/github_test.go | |
parent | e8c6cead0fb926ced6595c7b22f56b1cc2540435 (diff) | |
download | gitea-09663493543a2ce15fc90fbb3808dda5b87335e5.tar.gz gitea-09663493543a2ce15fc90fbb3808dda5b87335e5.zip |
Make the github migration less rate limit waiting to get comment per page from repository but not per issue (#16070)
* Make the github migration less rate limit waiting to get comment per page from repository but not per issue
* Fix lint
* adjust Downloader interface
* Fix missed reviews
* Fix test
* Remove unused struct
Diffstat (limited to 'modules/migrations/github_test.go')
-rw-r--r-- | modules/migrations/github_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/migrations/github_test.go b/modules/migrations/github_test.go index 5bd980a9d8..e0ee2fea84 100644 --- a/modules/migrations/github_test.go +++ b/modules/migrations/github_test.go @@ -240,7 +240,9 @@ func TestGitHubDownloadRepo(t *testing.T) { }, issues) // downloader.GetComments() - comments, err := downloader.GetComments(2) + comments, _, err := downloader.GetComments(base.GetCommentOptions{ + IssueNumber: 2, + }) assert.NoError(t, err) assert.Len(t, comments, 2) assert.EqualValues(t, []*base.Comment{ |