summaryrefslogtreecommitdiff
path: root/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cache')
-rw-r--r--cache/cache_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cache/cache_test.go b/cache/cache_test.go
index 59d4269..76096ee 100644
--- a/cache/cache_test.go
+++ b/cache/cache_test.go
@@ -165,7 +165,8 @@ func TestNew(t *testing.T) {
func TestLoadFile_NotExist(t *testing.T) {
f := fstest.MapFS{}
c, err := LoadFile(f, "anything is fine")
- assert.Nil(t, c)
+ assert.NotNil(t, c)
+ assert.Nil(t, c.Entries)
assert.NoError(t, err)
}
@@ -237,7 +238,7 @@ func TestLoadState(t *testing.T) {
Data: []byte("asdf # hjkl"),
},
}
- st, errs := LoadState(f, c, nil, nil)
+ st, errs := LoadState(f, nil, c, nil, nil)
for _, e := range errs {
assert.NoError(t, e)
}