From bb00d26bbe6bdee45d8d0fe231a326e345d53a68 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 30 Sep 2025 19:31:42 +0800 Subject: [PATCH] signer/core: fix error message in test (#32807) --- signer/core/api_test.go | 2 +- signer/core/signed_data_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/signer/core/api_test.go b/signer/core/api_test.go index 0e16a1b7fd..ed4fdc5096 100644 --- a/signer/core/api_test.go +++ b/signer/core/api_test.go @@ -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) diff --git a/signer/core/signed_data_test.go b/signer/core/signed_data_test.go index 001f6b6838..8455aaf9c5 100644 --- a/signer/core/signed_data_test.go +++ b/signer/core/signed_data_test.go @@ -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")))