From 217cdf447a995fd8f2700b14ba790360ccaeabf6 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 23 Dec 2016 10:32:30 -0500 Subject: PLT-5073 Improve performance of /channels/view endpoint (#4881) * Improve performance of /channels/view endpoint * Fix store unit test --- api/channel_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/channel_test.go') diff --git a/api/channel_test.go b/api/channel_test.go index dae4feab6..25fd885ca 100644 --- a/api/channel_test.go +++ b/api/channel_test.go @@ -1862,14 +1862,12 @@ func TestViewChannel(t *testing.T) { } view.PrevChannelId = "" - view.Time = 1234567890 if _, resp := Client.ViewChannel(view); resp.Error != nil { t.Fatal(resp.Error) } view.PrevChannelId = "junk" - view.Time = 0 if _, resp := Client.ViewChannel(view); resp.Error != nil { t.Fatal(resp.Error) @@ -1878,6 +1876,8 @@ func TestViewChannel(t *testing.T) { rdata := Client.Must(Client.GetChannel(th.BasicChannel.Id, "")).Data.(*model.ChannelData) if rdata.Channel.TotalMsgCount != rdata.Member.MsgCount { + t.Log(rdata.Channel.Id) + t.Log(rdata.Member.UserId) t.Log(rdata.Channel.TotalMsgCount) t.Log(rdata.Member.MsgCount) t.Fatal("message counts don't match") -- cgit v1.2.3-1-g7c22