From 8c5c1bdc52b64961e6473838c8fdb7706e9eba9c Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 14 Aug 2021 15:54:31 +0700 Subject: [PATCH] remove statusData from fetch --- txpool/fetch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txpool/fetch_test.go b/txpool/fetch_test.go index d27391bd2..61d06e151 100644 --- a/txpool/fetch_test.go +++ b/txpool/fetch_test.go @@ -152,7 +152,7 @@ func TestOnNewBlock(t *testing.T) { pool := &PoolMock{} fetch := NewFetch(ctx, nil, pool, stateChanges, db) err := fetch.handleStateChanges(ctx, stateChanges) - assert.NoError(t, err) + assert.ErrorIs(t, io.EOF, err) assert.Equal(t, 1, len(pool.OnNewBlockCalls())) assert.Equal(t, 3, len(pool.OnNewBlockCalls()[0].MinedTxs.txs)) }