mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
add etag cache testing to api GetChannelCounts unit test
This commit is contained in:
@@ -417,6 +417,13 @@ func TestGetChannelCounts(t *testing.T) {
|
||||
if len(counts.UpdateTimes) != 4 {
|
||||
t.Fatal("wrong number of channel update times")
|
||||
}
|
||||
|
||||
if cache_result, err := Client.GetChannelCounts(result.Etag); err != nil {
|
||||
t.Fatal(err)
|
||||
} else if cache_result.Data.(*model.ChannelCounts) != nil {
|
||||
t.Log(cache_result.Data)
|
||||
t.Fatal("cache should be empty")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user