summaryrefslogtreecommitdiffstats
path: root/app/notification_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/notification_test.go')
-rw-r--r--app/notification_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/notification_test.go b/app/notification_test.go
index 24784940e..3b8b4adf5 100644
--- a/app/notification_test.go
+++ b/app/notification_test.go
@@ -37,7 +37,7 @@ func TestSendNotifications(t *testing.T) {
} else if mentions == nil {
t.Log(mentions)
t.Fatal("user should have been mentioned")
- } else if mentions[0] != th.BasicUser2.Id {
+ } else if !utils.StringInSlice(th.BasicUser2.Id, mentions) {
t.Log(mentions)
t.Fatal("user should have been mentioned")
}