From ca4d0c68af9e2a5c836e7ee17b5f10db3a15a6ae Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Tue, 11 Aug 2015 09:32:43 -0400 Subject: add etag cache testing to api GetChannelCounts unit test --- api/channel_test.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'api/channel_test.go') diff --git a/api/channel_test.go b/api/channel_test.go index 5563c692e..1332360ad 100644 --- a/api/channel_test.go +++ b/api/channel_test.go @@ -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") + } } } -- cgit v1.2.3-1-g7c22