aboutsummaryrefslogtreecommitdiffstats
path: root/models/attachment_test.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-04-30 02:30:12 -0400
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-04-30 14:30:12 +0800
commit66c803fae25f966a23d012de91e281e229b62cd4 (patch)
treec021213252648b23eca65b259b666488b7759875 /models/attachment_test.go
parent0308d44a16d7bdcda75c1e946dc06efca48ed624 (diff)
downloadgitea-66c803fae25f966a23d012de91e281e229b62cd4.tar.gz
gitea-66c803fae25f966a23d012de91e281e229b62cd4.zip
MySQL, Postgres integration tests in drone (#1638)
* MySQL, Postgres integration tests in drone * Fix .drone.yml * sign drone * resign drone
Diffstat (limited to 'models/attachment_test.go')
-rw-r--r--models/attachment_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/attachment_test.go b/models/attachment_test.go
index 5fdac31b41..d568e39431 100644
--- a/models/attachment_test.go
+++ b/models/attachment_test.go
@@ -13,7 +13,7 @@ import (
func TestIncreaseDownloadCount(t *testing.T) {
assert.NoError(t, PrepareTestDatabase())
- attachment, err := GetAttachmentByUUID("1234567890")
+ attachment, err := GetAttachmentByUUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11")
assert.NoError(t, err)
assert.Equal(t, int64(0), attachment.DownloadCount)
@@ -21,7 +21,7 @@ func TestIncreaseDownloadCount(t *testing.T) {
err = attachment.IncreaseDownloadCount()
assert.NoError(t, err)
- attachment, err = GetAttachmentByUUID("1234567890")
+ attachment, err = GetAttachmentByUUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11")
assert.NoError(t, err)
assert.Equal(t, int64(1), attachment.DownloadCount)
}
@@ -53,7 +53,7 @@ func TestDeleteAttachments(t *testing.T) {
err = DeleteAttachment(&Attachment{ID: 8}, false)
assert.NoError(t, err)
- attachment, err := GetAttachmentByUUID("test-12345")
+ attachment, err := GetAttachmentByUUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a18")
assert.Error(t, err)
assert.True(t, IsErrAttachmentNotExist(err))
assert.Nil(t, attachment)