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
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
14ce471311
Коммит
f82667f3b8
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user