diff --git a/storage/channel_test.go b/storage/channel_test.go index 6f6737b2..b1cef020 100644 --- a/storage/channel_test.go +++ b/storage/channel_test.go @@ -63,20 +63,3 @@ func TestTopic(t *testing.T) { channelStore.SetTopic("the topic", "srv", "#chan") assert.Equal(t, "the topic", channelStore.GetTopic("srv", "#chan")) } - -func TestFindUserChannels(t *testing.T) { - channelStore := NewChannelStore() - channelStore.AddUser("user", "srv", "#chan1") - channelStore.AddUser("user", "srv", "#chan2") - channelStore.AddUser("user2", "srv", "#chan3") - channelStore.AddUser("user", "srv2", "#chan4") - channelStore.AddUser("@gotop", "srv", "#chan1") - - channels := channelStore.FindUserChannels("user", "srv") - assert.Len(t, channels, 2) - assert.Contains(t, channels, "#chan1") - assert.Contains(t, channels, "#chan2") - channels = channelStore.FindUserChannels("gotop", "srv") - assert.Len(t, channels, 1) - assert.Contains(t, channels, "#chan1") -}