diff --git a/txpool/fetch_test.go b/txpool/fetch_test.go index 957327bd9..d27391bd2 100644 --- a/txpool/fetch_test.go +++ b/txpool/fetch_test.go @@ -151,7 +151,8 @@ func TestOnNewBlock(t *testing.T) { } pool := &PoolMock{} fetch := NewFetch(ctx, nil, pool, stateChanges, db) - fetch.handleStateChanges(ctx, stateChanges) + err := fetch.handleStateChanges(ctx, stateChanges) + assert.NoError(t, err) assert.Equal(t, 1, len(pool.OnNewBlockCalls())) assert.Equal(t, 3, len(pool.OnNewBlockCalls()[0].MinedTxs.txs)) }