diff options
Diffstat (limited to 'store/sql_channel_store_test.go')
-rw-r--r-- | store/sql_channel_store_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/store/sql_channel_store_test.go b/store/sql_channel_store_test.go index 7aeef98cc..6186a242c 100644 --- a/store/sql_channel_store_test.go +++ b/store/sql_channel_store_test.go @@ -419,6 +419,14 @@ func TestChannelMemberStore(t *testing.T) { t.Fatal("should have saved 2 members") } + if store.Channel().GetMemberCountFromCache(o1.ChannelId) != 2 { + t.Fatal("should have saved 2 members") + } + + if store.Channel().GetMemberCountFromCache("junk") != 0 { + t.Fatal("should have saved 0 members") + } + count = (<-store.Channel().GetMemberCount(o1.ChannelId, false)).Data.(int64) if count != 2 { t.Fatal("should have saved 2 members") |