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