summaryrefslogtreecommitdiffstats
path: root/tests/integration/api_comment_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/api_comment_test.go')
-rw-r--r--tests/integration/api_comment_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/api_comment_test.go b/tests/integration/api_comment_test.go
index c773afab3d..ee648210e5 100644
--- a/tests/integration/api_comment_test.go
+++ b/tests/integration/api_comment_test.go
@@ -128,7 +128,7 @@ func TestAPIGetComment(t *testing.T) {
DecodeJSON(t, resp, &apiComment)
assert.NoError(t, comment.LoadPoster(db.DefaultContext))
- expect := convert.ToComment(db.DefaultContext, comment)
+ expect := convert.ToAPIComment(db.DefaultContext, repo, comment)
assert.Equal(t, expect.ID, apiComment.ID)
assert.Equal(t, expect.Poster.FullName, apiComment.Poster.FullName)