Skip to content

Commit

Permalink
core/types: fix unhandled errors in TestTransactionCoding (#24692)
Browse files Browse the repository at this point in the history
  • Loading branch information
tia-99 authored Apr 27, 2022
1 parent 16701c5 commit 1f5943e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/types/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

Expand Down

0 comments on commit 1f5943e

Please sign in to comment.