mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
crypto/signify: fix fuzz test compilation (#33402)
The fuzz test file has been broken for a while - it doesn't compile with the `gofuzz` build tag. Two issues: - Line 59: called `SignifySignFile` which doesn't exist (should be `SignFile`) - Line 71: used `:=` instead of `=` for already declared `err` variable
This commit is contained in:
parent
3a5560fa98
commit
a9eaf2ffd8
1 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ func Fuzz(data []byte) int {
|
|||
fmt.Printf("untrusted: %v\n", untrustedComment)
|
||||
fmt.Printf("trusted: %v\n", trustedComment)
|
||||
|
||||
err = SignifySignFile(tmpFile.Name(), tmpFile.Name()+".sig", testSecKey, untrustedComment, trustedComment)
|
||||
err = SignFile(tmpFile.Name(), tmpFile.Name()+".sig", testSecKey, untrustedComment, trustedComment)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ func Fuzz(data []byte) int {
|
|||
signify = path
|
||||
}
|
||||
|
||||
_, err := exec.LookPath(signify)
|
||||
_, err = exec.LookPath(signify)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue