summaryrefslogtreecommitdiffstats
path: root/services/migrations/gitea_downloader_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/migrations/gitea_downloader_test.go')
-rw-r--r--services/migrations/gitea_downloader_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/services/migrations/gitea_downloader_test.go b/services/migrations/gitea_downloader_test.go
index 2c70dc4213..dc6903e854 100644
--- a/services/migrations/gitea_downloader_test.go
+++ b/services/migrations/gitea_downloader_test.go
@@ -198,9 +198,7 @@ func TestGiteaDownloadRepo(t *testing.T) {
},
}, issues)
- comments, _, err := downloader.GetComments(base.GetCommentOptions{
- Context: base.BasicIssueContext(4),
- })
+ comments, _, err := downloader.GetComments(&base.Issue{Number: 4, ForeignIndex: 4})
assert.NoError(t, err)
assertCommentsEqual(t, []*base.Comment{
{
@@ -265,7 +263,7 @@ func TestGiteaDownloadRepo(t *testing.T) {
PatchURL: "https://gitea.com/gitea/test_repo/pulls/12.patch",
}, prs[1])
- reviews, err := downloader.GetReviews(base.BasicIssueContext(7))
+ reviews, err := downloader.GetReviews(&base.Issue{Number: 7, ForeignIndex: 7})
assert.NoError(t, err)
assertReviewsEqual(t, []*base.Review{
{