From be43522117e637271509cf24244f554a437c0578 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Thu, 12 Nov 2015 11:25:46 -0500 Subject: Added ChannelExtra.MemberCount field to reflect the actual member count when we truncate the list of members to 20 --- api/channel_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'api/channel_test.go') 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") } // -- cgit v1.2.3-1-g7c22