add etag cache testing to api GetChannelCounts unit test

Этот коммит содержится в:
JoramWilander
2015-08-11 09:32:43 -04:00
родитель 3d0133b5e8
Коммит ca4d0c68af

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

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