From ffb834ec3ce048db341e2438c0116475297a6f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 3 May 2018 15:40:54 +0200 Subject: Fix TestSendNotifications test (#8712) --- app/notification_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/notification_test.go') 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") } -- cgit v1.2.3-1-g7c22