diff options
Diffstat (limited to 'api/command_join_test.go')
-rw-r--r-- | api/command_join_test.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/api/command_join_test.go b/api/command_join_test.go index d586a522a..6cf474c6b 100644 --- a/api/command_join_test.go +++ b/api/command_join_test.go @@ -41,7 +41,14 @@ func TestJoinCommands(t *testing.T) { c1 := Client.Must(Client.GetChannels("")).Data.(*model.ChannelList) - if len(c1.Channels) != 5 { - t.Fatal("didn't join channel") + found := false + for _, c := range c1.Channels { + if c.Id == channel2.Id { + found = true + } + } + + if !found { + t.Fatal("did not join channel") } } |