From c589b15decf650c7ee2341da57fa24af38f6a6d9 Mon Sep 17 00:00:00 2001 From: dbw7 Date: Fri, 26 Jul 2024 08:33:36 -0400 Subject: [PATCH] fix testing --- pkg/cache/cache_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/cache/cache_test.go b/pkg/cache/cache_test.go index d1bc64a8..5bb34d93 100644 --- a/pkg/cache/cache_test.go +++ b/pkg/cache/cache_test.go @@ -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() {