Skip to content

Commit

Permalink
test: close file to fix residual tmp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
70sh1 committed Apr 3, 2024
1 parent c6679a7 commit 2869a8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ func TestDecryptFileError(t *testing.T) {
output := strings.TrimSuffix(input, ".eddy")
file, err := os.Open(input)
testutils.PanicIfErr(err)
defer file.Close()
err = DecryptFile(file, output, "wrong-password", false, io.Discard)
require.Error(t, err)
require.NoFileExists(t, output)
Expand Down

0 comments on commit 2869a8d

Please sign in to comment.