From 63b5872f5fcd84413f7ff283476dff199f789c79 Mon Sep 17 00:00:00 2001 From: Meredith Lancaster Date: Tue, 12 Mar 2024 16:49:05 -0600 Subject: [PATCH] cleanup unused tempdir handling Signed-off-by: Meredith Lancaster --- pkg/cmd/attestation/download/download_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/cmd/attestation/download/download_test.go b/pkg/cmd/attestation/download/download_test.go index 7146d5278..aea74aaf0 100644 --- a/pkg/cmd/attestation/download/download_test.go +++ b/pkg/cmd/attestation/download/download_test.go @@ -41,9 +41,6 @@ func TestRunDownload(t *testing.T) { expectedLineCount := 2 require.Equal(t, expectedLineCount, actualLineCount) - - err = os.Remove(fmt.Sprintf("%s/%s.jsonl", tempDir, artifact.DigestWithAlg())) - require.NoError(t, err) }) t.Run("download OCI image attestations successfully", func(t *testing.T) { @@ -63,9 +60,6 @@ func TestRunDownload(t *testing.T) { expectedLineCount := 2 require.Equal(t, expectedLineCount, actualLineCount) - - err = os.Remove(fmt.Sprintf("%s/%s.jsonl", tempDir, artifact.DigestWithAlg())) - require.NoError(t, err) }) t.Run("cannot find artifact", func(t *testing.T) {