Skip to content

Commit

Permalink
crypto/signify: close tmp key file in test (ethereum#29444)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored and jorgemmsilva committed Jun 17, 2024
1 parent 7e046a3 commit f96c670
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/signify/signify_fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func createKeyPair() (string, string) {
defer os.Remove(tmpKey.Name())
defer os.Remove(tmpKey.Name() + ".pub")
defer os.Remove(tmpKey.Name() + ".sec")
defer tmpKey.Close()
cmd := exec.Command("signify", "-G", "-n", "-p", tmpKey.Name()+".pub", "-s", tmpKey.Name()+".sec")
if output, err := cmd.CombinedOutput(); err != nil {
panic(fmt.Sprintf("could not verify the file: %v, output: \n%s", err, output))
Expand Down

0 comments on commit f96c670

Please sign in to comment.