signer/core: fix error message in test (#32807)

This commit is contained in:
Zach Brown 2025-09-30 19:31:42 +08:00 committed by GitHub
parent f9756bb885
commit bb00d26bbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -264,7 +264,7 @@ func TestSignTx(t *testing.T) {
t.Errorf("Expected nil-response, got %v", res)
}
if err != keystore.ErrDecrypt {
t.Errorf("Expected ErrLocked! %v", err)
t.Errorf("Expected ErrDecrypt! %v", err)
}
control.approveCh <- "No way"
res, err = api.SignTransaction(t.Context(), tx, &methodSig)

View file

@ -202,7 +202,7 @@ func TestSignData(t *testing.T) {
t.Errorf("Expected nil-data, got %x", signature)
}
if err != keystore.ErrDecrypt {
t.Errorf("Expected ErrLocked! '%v'", err)
t.Errorf("Expected ErrDecrypt! '%v'", err)
}
control.approveCh <- "No way"
signature, err = api.SignData(context.Background(), apitypes.TextPlain.Mime, a, hexutil.Encode([]byte("EHLO world")))