diff options
author | Corey Hulen <corey@hulen.com> | 2015-10-27 11:40:49 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-10-27 11:40:49 -0700 |
commit | e0f69060fa462390779dd7b4cf6b67a12c3974ba (patch) | |
tree | b1ea3f745c2607a0f12eaa0af18db3c4c846ab63 /store/sql_channel_store_test.go | |
parent | 4dbde3e1d8f6c6a7087c6af1407140a7b250c8d0 (diff) | |
parent | 399e9c6f4bbed7f9eac0a75242ec75e4b0d2bb59 (diff) | |
download | chat-e0f69060fa462390779dd7b4cf6b67a12c3974ba.tar.gz chat-e0f69060fa462390779dd7b4cf6b67a12c3974ba.tar.bz2 chat-e0f69060fa462390779dd7b4cf6b67a12c3974ba.zip |
Merge pull request #1190 from mattermost/PLT-25
PLT-25 adding stats to admin console
Diffstat (limited to 'store/sql_channel_store_test.go')
-rw-r--r-- | store/sql_channel_store_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/store/sql_channel_store_test.go b/store/sql_channel_store_test.go index 60d3de56a..f6a0fb713 100644 --- a/store/sql_channel_store_test.go +++ b/store/sql_channel_store_test.go @@ -561,6 +561,24 @@ func TestChannelStoreGetMoreChannels(t *testing.T) { if list.Channels[0].Name != o3.Name { t.Fatal("missing channel") } + + if r1 := <-store.Channel().AnalyticsTypeCount(o1.TeamId, model.CHANNEL_OPEN); r1.Err != nil { + t.Fatal(r1.Err) + } else { + if r1.Data.(int64) != 2 { + t.Log(r1.Data) + t.Fatal("wrong value") + } + } + + if r1 := <-store.Channel().AnalyticsTypeCount(o1.TeamId, model.CHANNEL_PRIVATE); r1.Err != nil { + t.Fatal(r1.Err) + } else { + if r1.Data.(int64) != 2 { + t.Log(r1.Data) + t.Fatal("wrong value") + } + } } func TestChannelStoreGetChannelCounts(t *testing.T) { |