Fix tests with changes to dependency error output.

This commit is contained in:
Jim McDonald
2023-08-07 20:49:32 +01:00
parent a1ea298983
commit aeb8142b27
2 changed files with 4 additions and 4 deletions

View File

@@ -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")

View File

@@ -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",