summaryrefslogtreecommitdiffstats
path: root/api/channel_test.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-12 11:25:46 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-12 11:25:46 -0500
commitbe43522117e637271509cf24244f554a437c0578 (patch)
tree53b3d49a095efa96fa80592fdc2a5f5257b78058 /api/channel_test.go
parent13a251a5ee940383e5a026284275b1f31fb476df (diff)
downloadchat-be43522117e637271509cf24244f554a437c0578.tar.gz
chat-be43522117e637271509cf24244f554a437c0578.tar.bz2
chat-be43522117e637271509cf24244f554a437c0578.zip
Added ChannelExtra.MemberCount field to reflect the actual member count when we truncate the list of members to 20
Diffstat (limited to 'api/channel_test.go')
-rw-r--r--api/channel_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/channel_test.go b/api/channel_test.go
index a41f63b1b..faed387dd 100644
--- a/api/channel_test.go
+++ b/api/channel_test.go
@@ -677,6 +677,10 @@ func TestGetChannelExtraInfo(t *testing.T) {
data := rget.Data.(*model.ChannelExtra)
if data.Id != channel1.Id {
t.Fatal("couldnt't get extra info")
+ } else if len(data.Members) != 1 {
+ t.Fatal("got incorrect members")
+ } else if data.MemberCount != 1 {
+ t.Fatal("got incorrect member count")
}
//