Skip to content

Commit

Permalink
fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dbw7 committed Jul 26, 2024
1 parent 3fc9de1 commit c589b15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import (
)

func setup(t *testing.T) (cache *Cache, teardown func()) {
cache, err := New("test-cache")
cacheDir := "test-cache"
assert.NoError(t, os.MkdirAll(cacheDir, os.ModePerm))

cache, err := New(cacheDir)
require.NoError(t, err)

return cache, func() {
Expand Down

0 comments on commit c589b15

Please sign in to comment.