summaryrefslogtreecommitdiffstats
path: root/app/notification_test.go
diff options
context:
space:
mode:
authorMartin Kraft <martinkraft@gmail.com>2018-05-09 15:00:07 -0400
committerMartin Kraft <martinkraft@gmail.com>2018-05-09 15:00:07 -0400
commitd3e14a1bf86ac6148e09f888384cb46c61f23cdc (patch)
tree1c634c90166964f5184cb1ebd20ffb8ed209b120 /app/notification_test.go
parent60cf74352f13874a7d07c609c03b1c763af19cea (diff)
parentc1853c7f40dd67c49524c8ea884ab61883a6abdd (diff)
downloadchat-d3e14a1bf86ac6148e09f888384cb46c61f23cdc.tar.gz
chat-d3e14a1bf86ac6148e09f888384cb46c61f23cdc.tar.bz2
chat-d3e14a1bf86ac6148e09f888384cb46c61f23cdc.zip
Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2
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")
}