From 75436d632dbbc12086cb2d2cfbb2b648c8c686bd Mon Sep 17 00:00:00 2001 From: ilan gitter Date: Wed, 27 Nov 2019 09:21:37 -0500 Subject: [PATCH] assert errs --- accounts/abi/bind/backends/simulated_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/accounts/abi/bind/backends/simulated_test.go b/accounts/abi/bind/backends/simulated_test.go index b09675683a..455d89c1e3 100644 --- a/accounts/abi/bind/backends/simulated_test.go +++ b/accounts/abi/bind/backends/simulated_test.go @@ -217,6 +217,9 @@ func TestSimulatedBackend_BlockByNumber(t *testing.T) { } blockByNumber, err := sim.BlockByNumber(bgCtx, big.NewInt(1)) + if err != nil { + t.Errorf("could not get block by number: %v", err) + } if blockByNumber.Hash() != block.Hash() { t.Errorf("did not get the same block with height of 1 as before") } @@ -623,6 +626,9 @@ func TestSimulatedBackend_PendingNonceAt(t *testing.T) { t.Errorf("could not sign tx: %v", err) } err = sim.SendTransaction(bgCtx, signedTx) + if err != nil { + t.Errorf("could not send tx: %v", err) + } // expect pending nonce to be 2 since account now has two transactions pendingNonce, err = sim.PendingNonceAt(bgCtx, testAddr)