summaryrefslogtreecommitdiffstats
path: root/tests/integration/api_comment_attachment_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/api_comment_attachment_test.go')
-rw-r--r--tests/integration/api_comment_attachment_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/api_comment_attachment_test.go b/tests/integration/api_comment_attachment_test.go
index 8aa73dd368..e211376c3c 100644
--- a/tests/integration/api_comment_attachment_test.go
+++ b/tests/integration/api_comment_attachment_test.go
@@ -45,11 +45,12 @@ func TestAPIGetCommentAttachment(t *testing.T) {
var apiAttachment api.Attachment
DecodeJSON(t, resp, &apiAttachment)
- expect := convert.ToAttachment(attachment)
+ expect := convert.ToAPIAttachment(repo, attachment)
assert.Equal(t, expect.ID, apiAttachment.ID)
assert.Equal(t, expect.Name, apiAttachment.Name)
assert.Equal(t, expect.UUID, apiAttachment.UUID)
assert.Equal(t, expect.Created.Unix(), apiAttachment.Created.Unix())
+ assert.Equal(t, expect.DownloadURL, apiAttachment.DownloadURL)
}
func TestAPIListCommentAttachments(t *testing.T) {