From 1f5943e4f9b3c3dac41883f0f787df1ef95d4e68 Mon Sep 17 00:00:00 2001 From: tia-99 <67107070+tia-99@users.noreply.github.com> Date: Wed, 27 Apr 2022 16:56:50 +0800 Subject: [PATCH] core/types: fix unhandled errors in TestTransactionCoding (#24692) --- core/types/transaction_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/types/transaction_test.go b/core/types/transaction_test.go index a4755675c..2e418b230 100644 --- a/core/types/transaction_test.go +++ b/core/types/transaction_test.go @@ -477,14 +477,18 @@ func TestTransactionCoding(t *testing.T) { if err != nil { t.Fatal(err) } - assertEqual(parsedTx, tx) + if err := assertEqual(parsedTx, tx); err != nil { + t.Fatal(err) + } // JSON parsedTx, err = encodeDecodeJSON(tx) if err != nil { t.Fatal(err) } - assertEqual(parsedTx, tx) + if err := assertEqual(parsedTx, tx); err != nil { + t.Fatal(err) + } } }