diff options
author | David Lu <david.lu@hotmail.com> | 2016-05-20 09:14:18 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-20 09:14:18 -0400 |
commit | 981a08e80e3b686210f65c38ee8b8e831ab379e9 (patch) | |
tree | ff1e0deb9f7ffb83d2b0b5337fd3eab0fbc07ccc /api/command_join_test.go | |
parent | 36be959cd96fcc3c7791939e9f4a3e92d737284d (diff) | |
download | chat-981a08e80e3b686210f65c38ee8b8e831ab379e9.tar.gz chat-981a08e80e3b686210f65c38ee8b8e831ab379e9.tar.bz2 chat-981a08e80e3b686210f65c38ee8b8e831ab379e9.zip |
Fixed double join messages (#3059)
Diffstat (limited to 'api/command_join_test.go')
-rw-r--r-- | api/command_join_test.go | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/api/command_join_test.go b/api/command_join_test.go index 2b4a5bfe3..d586a522a 100644 --- a/api/command_join_test.go +++ b/api/command_join_test.go @@ -41,18 +41,7 @@ func TestJoinCommands(t *testing.T) { c1 := Client.Must(Client.GetChannels("")).Data.(*model.ChannelList) - if len(c1.Channels) != 6 { // 4 because of town-square, off-topic and direct - t.Fatal("didn't join channel") - } - - found := false - for _, c := range c1.Channels { - if c.Name == channel2.Name { - found = true - break - } - } - if !found { + if len(c1.Channels) != 5 { t.Fatal("didn't join channel") } } |