Added ChannelExtra.MemberCount field to reflect the actual member count when we truncate the list of members to 20

Этот коммит содержится в:
hmhealey
2015-11-12 11:25:46 -05:00
родитель 13a251a5ee
Коммит be43522117
8 изменённых файлов: 45 добавлений и 10 удалений

Просмотреть файл

@@ -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")
}
//