From e739a91c94049aa62cfe76b9c6686fb18184232b Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 3 Mar 2017 12:25:32 -0500 Subject: Fix JS error when receiving reply during channel switch (#5582) --- api/channel_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'api/channel_test.go') diff --git a/api/channel_test.go b/api/channel_test.go index d8da3374b..93c79d416 100644 --- a/api/channel_test.go +++ b/api/channel_test.go @@ -903,7 +903,6 @@ func TestGetChannel(t *testing.T) { if _, err := Client.GetChannels(""); err == nil { t.Fatal("should have failed - wrong team id") } - } func TestGetMoreChannelsPage(t *testing.T) { @@ -2003,6 +2002,10 @@ func TestViewChannel(t *testing.T) { t.Log(rdata.Member.MsgCount) t.Fatal("message counts don't match") } + + if _, err := Client.DoApiPost(Client.GetTeamRoute()+"/channels/view", "garbage"); err == nil { + t.Fatal("should have been an error") + } } func TestGetChannelMembersByIds(t *testing.T) { -- cgit v1.2.3-1-g7c22