From 12d6cdd4c834ccbaaa1d272d88f973417bcf1c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Tue, 29 Dec 2015 11:32:10 +0100 Subject: [PATCH] Fix FindUserChannels test --- storage/channel_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/storage/channel_test.go b/storage/channel_test.go index 2a636962..c50b56bf 100644 --- a/storage/channel_test.go +++ b/storage/channel_test.go @@ -64,5 +64,9 @@ func TestFindUserChannels(t *testing.T) { channelStore.AddUser("user", "srv", "#chan2") channelStore.AddUser("user2", "srv", "#chan3") channelStore.AddUser("user", "srv2", "#chan4") - assert.Equal(t, []string{"#chan1", "#chan2"}, channelStore.FindUserChannels("user", "srv")) + + channels := channelStore.FindUserChannels("user", "srv") + assert.Len(t, channels, 2) + assert.Contains(t, channels, "#chan1") + assert.Contains(t, channels, "#chan2") }