cleanup unused tempdir handling

Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
Meredith Lancaster 2024-03-12 16:49:05 -06:00
parent f78e104054
commit 63b5872f5f

View file

@ -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) {