diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-08-11 09:32:43 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-08-11 12:11:35 -0400 |
commit | ca4d0c68af9e2a5c836e7ee17b5f10db3a15a6ae (patch) | |
tree | 25819e58c68f8918be1848a36642fed519604b56 /api | |
parent | 3d0133b5e85660b942773f7cc63e6e8bc357462c (diff) | |
download | chat-ca4d0c68af9e2a5c836e7ee17b5f10db3a15a6ae.tar.gz chat-ca4d0c68af9e2a5c836e7ee17b5f10db3a15a6ae.tar.bz2 chat-ca4d0c68af9e2a5c836e7ee17b5f10db3a15a6ae.zip |
add etag cache testing to api GetChannelCounts unit test
Diffstat (limited to 'api')
-rw-r--r-- | api/channel_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
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") + } } } |