summaryrefslogtreecommitdiffstats
path: root/models/notification_test.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-02-07 06:47:55 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-07 19:47:55 +0800
commitceae143e78dabe9c5ef6bafff739aa487f79ca70 (patch)
tree81dc5c431ffcd1e2824a7b1577fa463fb1434d74 /models/notification_test.go
parent94130da63a31da59207dd7c4f12aa46fde17ab5b (diff)
downloadgitea-ceae143e78dabe9c5ef6bafff739aa487f79ca70.tar.gz
gitea-ceae143e78dabe9c5ef6bafff739aa487f79ca70.zip
Consistency checks for unit tests (#853)
Diffstat (limited to 'models/notification_test.go')
-rw-r--r--models/notification_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/notification_test.go b/models/notification_test.go
index dccb478f27..57d686a474 100644
--- a/models/notification_test.go
+++ b/models/notification_test.go
@@ -20,6 +20,7 @@ func TestCreateOrUpdateIssueNotifications(t *testing.T) {
assert.Equal(t, NotificationStatusUnread, notf.Status)
notf = AssertExistsAndLoadBean(t, &Notification{UserID: 4, IssueID: issue.ID}).(*Notification)
assert.Equal(t, NotificationStatusUnread, notf.Status)
+ CheckConsistencyFor(t, &Issue{ID: issue.ID})
}
func TestNotificationsForUser(t *testing.T) {