diff options
Diffstat (limited to 'tests/integration/api_comment_attachment_test.go')
-rw-r--r-- | tests/integration/api_comment_attachment_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/api_comment_attachment_test.go b/tests/integration/api_comment_attachment_test.go index 1f916ffa15..1d0b902b39 100644 --- a/tests/integration/api_comment_attachment_test.go +++ b/tests/integration/api_comment_attachment_test.go @@ -68,7 +68,7 @@ func TestAPIListCommentAttachments(t *testing.T) { var apiAttachments []*api.Attachment DecodeJSON(t, resp, &apiAttachments) expectedCount := unittest.GetCount(t, &repo_model.Attachment{CommentID: comment.ID}) - assert.EqualValues(t, expectedCount, len(apiAttachments)) + assert.Len(t, apiAttachments, expectedCount) unittest.AssertExistsAndLoadBean(t, &repo_model.Attachment{ID: apiAttachments[0].ID, CommentID: comment.ID}) } |