From ad304da743b1a782889c024e0a928f0260ea54a7 Mon Sep 17 00:00:00 2001 From: MSFJ99-99 <254128840@qq.com> Date: Tue, 26 Apr 2022 22:11:03 +0800 Subject: [PATCH] core/types: fix unhandled errors in TestTransactionCoding --- 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 a4755675cd25..2e418b230986 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) + } } }