diff options
Diffstat (limited to 'models/notification_test.go')
-rw-r--r-- | models/notification_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/models/notification_test.go b/models/notification_test.go index c1b7d50529..07d9ee764c 100644 --- a/models/notification_test.go +++ b/models/notification_test.go @@ -16,10 +16,13 @@ func TestCreateOrUpdateIssueNotifications(t *testing.T) { assert.NoError(t, CreateOrUpdateIssueNotifications(issue, 2)) - // Two watchers are inactive, thus only notification for user 10 is created - notf := AssertExistsAndLoadBean(t, &Notification{UserID: 10, IssueID: issue.ID}).(*Notification) + // User 9 is inactive, thus notifications for user 1 and 4 are created + notf := AssertExistsAndLoadBean(t, &Notification{UserID: 1, IssueID: issue.ID}).(*Notification) assert.Equal(t, NotificationStatusUnread, notf.Status) CheckConsistencyFor(t, &Issue{ID: issue.ID}) + + notf = AssertExistsAndLoadBean(t, &Notification{UserID: 4, IssueID: issue.ID}).(*Notification) + assert.Equal(t, NotificationStatusUnread, notf.Status) } func TestNotificationsForUser(t *testing.T) { |