diff --git a/content/file/file_test.go b/content/file/file_test.go index e15d99dd..de6f2bb0 100644 --- a/content/file/file_test.go +++ b/content/file/file_test.go @@ -690,6 +690,7 @@ func TestStore_Dir_Push_SkipUnpack(t *testing.T) { if err != nil { t.Fatal("failed to open internal gz") } + defer pushedFile.Close() pushedContent, err := io.ReadAll(pushedFile) if err != nil { t.Fatal(err)