mirror of
https://github.com/wealdtech/ethdo.git
synced 2026-01-10 06:28:07 -05:00
Fix tests with changes to dependency error output.
This commit is contained in:
@@ -66,7 +66,7 @@ In quiet mode this will return 0 if the data can be signed, otherwise 1.`,
|
||||
copy(specDomain[:], domain)
|
||||
var fixedSizeData [32]byte
|
||||
copy(fixedSizeData[:], data)
|
||||
fmt.Printf("Signing %#x with domain %#x by public key %#x\n", fixedSizeData, specDomain, account.PublicKey().Marshal())
|
||||
outputIf(viper.GetBool("debug"), fmt.Sprintf("Signing %#x with domain %#x by public key %#x", fixedSizeData, specDomain, account.PublicKey().Marshal()))
|
||||
signature, err := util.SignRoot(account, fixedSizeData, specDomain)
|
||||
errCheck(err, "Failed to sign")
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ func TestProcess(t *testing.T) {
|
||||
data: append([]byte{0x00}, data...),
|
||||
passphrase: "ce%NohGhah4ye5ra",
|
||||
},
|
||||
err: "failed to import wallet: unhandled version 0x00",
|
||||
err: "failed to import wallet: failed to decrypt wallet: unhandled version 0x00",
|
||||
},
|
||||
{
|
||||
name: "PassphraseMissing",
|
||||
@@ -70,7 +70,7 @@ func TestProcess(t *testing.T) {
|
||||
timeout: 5 * time.Second,
|
||||
data: data,
|
||||
},
|
||||
err: "failed to import wallet: invalid key",
|
||||
err: "failed to import wallet: failed to decrypt wallet: invalid key",
|
||||
},
|
||||
{
|
||||
name: "PassphraseIncorrect",
|
||||
@@ -79,7 +79,7 @@ func TestProcess(t *testing.T) {
|
||||
data: data,
|
||||
passphrase: "weak",
|
||||
},
|
||||
err: "failed to import wallet: invalid key",
|
||||
err: "failed to import wallet: failed to decrypt wallet: invalid key",
|
||||
},
|
||||
{
|
||||
name: "Good",
|
||||
|
||||
Reference in New Issue
Block a user