Skip to content

Commit 8278ac9

Browse files
committed
refactor: improve testing.
1 parent f54b875 commit 8278ac9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/attachment_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ func TestIncreaseDownloadCount(t *testing.T) {
1515

1616
attachment, err := GetAttachmentByUUID("1234567890")
1717
assert.NoError(t, err)
18+
assert.Equal(t, int64(0), attachment.DownloadCount)
1819

1920
// increase download count
2021
err = attachment.IncreaseDownloadCount()

0 commit comments

Comments
 (0)