summaryrefslogtreecommitdiffstats
path: root/app/notification_test.go
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-05-03 15:40:54 +0200
committerHarrison Healey <harrisonmhealey@gmail.com>2018-05-03 09:40:54 -0400
commitffb834ec3ce048db341e2438c0116475297a6f74 (patch)
tree0f6a1baff9bd908c7a797cb577c6ed6b20a0f256 /app/notification_test.go
parent62898f4892b020b9bcf1b310830451f8bc57ba5a (diff)
downloadchat-ffb834ec3ce048db341e2438c0116475297a6f74.tar.gz
chat-ffb834ec3ce048db341e2438c0116475297a6f74.tar.bz2
chat-ffb834ec3ce048db341e2438c0116475297a6f74.zip
Fix TestSendNotifications test (#8712)
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")
}