Skip to content

Commit 579b575

Browse files
fix failing test
1 parent 77b8b85 commit 579b575

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/pkg/cache/cache_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ func TestPutObject(t *testing.T) {
113113

114114
// setup
115115
if tt.existingFile {
116+
err := os.MkdirAll(cacheFolderPath, 0o750)
117+
if err != nil {
118+
t.Fatalf("create cache folder: %s", err.Error())
119+
}
116120
if err := os.WriteFile(path, []byte("dummy"), 0o600); err != nil {
117121
t.Fatalf("setup: WriteFile (%s) failed", path)
118122
}

0 commit comments

Comments
 (0)