Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ostempel committed Oct 9, 2024
1 parent 800f84a commit ce9b4a9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cmd/internal/encryption/encryption_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func TestEncrypter(t *testing.T) {

input, err := fs.Create("encrypt")
require.NoError(t, err)
defer fs.Remove(input.Name())

cleartextInput := []byte("This is the content of the file")
err = afero.WriteFile(fs, input.Name(), cleartextInput, 0600)
Expand Down Expand Up @@ -55,6 +54,11 @@ func TestEncrypter(t *testing.T) {
require.NoError(t, err)
_, err = e.Decrypt(bigEncFile)
require.NoError(t, err)
fs.Remove("bigfile.test")
fs.Remove("bigfile.test.aes")

err = fs.Remove(input.Name())
require.NoError(t, err)
err = fs.Remove("bigfile.test")
require.NoError(t, err)
err = fs.Remove("bigfile.test.aes")
require.NoError(t, err)
}

0 comments on commit ce9b4a9

Please sign in to comment.