diff options
author | enahum <nahumhbl@gmail.com> | 2016-10-27 12:24:30 -0300 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-10-27 11:24:30 -0400 |
commit | f82667f3b86202dafff3a2a4ea56aec74c80316d (patch) | |
tree | 3785d9502505be528706e41b993a834c7bc00338 /api/team_test.go | |
parent | 14ce471311fee2830be3cbd3a90179015f513719 (diff) | |
download | chat-f82667f3b86202dafff3a2a4ea56aec74c80316d.tar.gz chat-f82667f3b86202dafff3a2a4ea56aec74c80316d.tar.bz2 chat-f82667f3b86202dafff3a2a4ea56aec74c80316d.zip |
PLT-4430 improve slow channel switching (#4331)
* PLT-4430 improve slow channel switching
* Update client side unit tests
* Convert getChannelsUnread to getMyChannelMembers and address other feedback
* Pull channel members on websocket reconnect
Diffstat (limited to 'api/team_test.go')
-rw-r--r-- | api/team_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/team_test.go b/api/team_test.go index a58710145..bac0228ad 100644 --- a/api/team_test.go +++ b/api/team_test.go @@ -63,7 +63,7 @@ func TestCreateFromSignupTeam(t *testing.T) { } c1 := Client.Must(Client.GetChannels("")).Data.(*model.ChannelList) - if len(c1.Channels) != 2 { + if len(*c1) != 2 { t.Fatal("default channels not created") } @@ -94,7 +94,7 @@ func TestCreateTeam(t *testing.T) { Client.SetTeamId(rteam.Data.(*model.Team).Id) c1 := Client.Must(Client.GetChannels("")).Data.(*model.ChannelList) - if len(c1.Channels) != 2 { + if len(*c1) != 2 { t.Fatal("default channels not created") } |