diff --git a/shroom_internals/cache_test.go b/shroom_internals/cache_test.go index b8e51fc..08165ad 100644 --- a/shroom_internals/cache_test.go +++ b/shroom_internals/cache_test.go @@ -25,6 +25,13 @@ func TestCache(t *testing.T) { if len(result) != expected { t.Errorf("invalid read len %d != %d\n", len(result), expected) } + if expected < 0 { + for k, v := range result { + if v.Time != uint64(k+j) { + t.Errorf("incorrect time %d != %d\n", v.Time, j+k) + } + } + } } } else { if result != nil {