diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-23 10:32:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-23 10:32:30 -0500 |
commit | 217cdf447a995fd8f2700b14ba790360ccaeabf6 (patch) | |
tree | ca0b01c4cd869fbadd1d5a831b5775ca9dc066dc /api/channel_test.go | |
parent | ffd6ccde2ed4b1d374d0835c5638a189df60a679 (diff) | |
download | chat-217cdf447a995fd8f2700b14ba790360ccaeabf6.tar.gz chat-217cdf447a995fd8f2700b14ba790360ccaeabf6.tar.bz2 chat-217cdf447a995fd8f2700b14ba790360ccaeabf6.zip |
PLT-5073 Improve performance of /channels/view endpoint (#4881)
* Improve performance of /channels/view endpoint
* Fix store unit test
Diffstat (limited to 'api/channel_test.go')
-rw-r--r-- | api/channel_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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") |