Unverified Commit 1f5943e4 authored by tia-99's avatar tia-99 Committed by GitHub

core/types: fix unhandled errors in TestTransactionCoding (#24692)

parent 16701c51
...@@ -477,14 +477,18 @@ func TestTransactionCoding(t *testing.T) { ...@@ -477,14 +477,18 @@ func TestTransactionCoding(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
assertEqual(parsedTx, tx) if err := assertEqual(parsedTx, tx); err != nil {
t.Fatal(err)
}
// JSON // JSON
parsedTx, err = encodeDecodeJSON(tx) parsedTx, err = encodeDecodeJSON(tx)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
assertEqual(parsedTx, tx) if err := assertEqual(parsedTx, tx); err != nil {
t.Fatal(err)
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment