mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-04 23:32:55 +00:00
signer/core: fix error message in test (#32807)
This commit is contained in:
parent
f9756bb885
commit
bb00d26bbe
2 changed files with 2 additions and 2 deletions
|
|
@ -264,7 +264,7 @@ func TestSignTx(t *testing.T) {
|
||||||
t.Errorf("Expected nil-response, got %v", res)
|
t.Errorf("Expected nil-response, got %v", res)
|
||||||
}
|
}
|
||||||
if err != keystore.ErrDecrypt {
|
if err != keystore.ErrDecrypt {
|
||||||
t.Errorf("Expected ErrLocked! %v", err)
|
t.Errorf("Expected ErrDecrypt! %v", err)
|
||||||
}
|
}
|
||||||
control.approveCh <- "No way"
|
control.approveCh <- "No way"
|
||||||
res, err = api.SignTransaction(t.Context(), tx, &methodSig)
|
res, err = api.SignTransaction(t.Context(), tx, &methodSig)
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ func TestSignData(t *testing.T) {
|
||||||
t.Errorf("Expected nil-data, got %x", signature)
|
t.Errorf("Expected nil-data, got %x", signature)
|
||||||
}
|
}
|
||||||
if err != keystore.ErrDecrypt {
|
if err != keystore.ErrDecrypt {
|
||||||
t.Errorf("Expected ErrLocked! '%v'", err)
|
t.Errorf("Expected ErrDecrypt! '%v'", err)
|
||||||
}
|
}
|
||||||
control.approveCh <- "No way"
|
control.approveCh <- "No way"
|
||||||
signature, err = api.SignData(context.Background(), apitypes.TextPlain.Mime, a, hexutil.Encode([]byte("EHLO world")))
|
signature, err = api.SignData(context.Background(), apitypes.TextPlain.Mime, a, hexutil.Encode([]byte("EHLO world")))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue