From e2cdb393782922af19fe6a99a4c5e65e3a36fb66 Mon Sep 17 00:00:00 2001 From: Darioush Jalali Date: Tue, 29 Oct 2024 11:31:58 -0700 Subject: [PATCH] tests: fix use of require.EventuallyWithT --- core/test_blockchain.go | 2 +- plugin/evm/gossip_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/test_blockchain.go b/core/test_blockchain.go index 02f98b61cf..54a872f8aa 100644 --- a/core/test_blockchain.go +++ b/core/test_blockchain.go @@ -1685,7 +1685,7 @@ func checkTxIndicesHelper(t *testing.T, expectedTail *uint64, indexedFrom uint64 require.EventuallyWithTf(t, func(c *assert.CollectT) { stored = *rawdb.ReadTxIndexTail(db) - require.Equalf(t, tailValue, stored, "expected tail to be %d, found %d", tailValue, stored) + assert.Equalf(c, tailValue, stored, "expected tail to be %d, found %d", tailValue, stored) }, 30*time.Second, 500*time.Millisecond, "expected tail to be %d eventually", tailValue) } diff --git a/plugin/evm/gossip_test.go b/plugin/evm/gossip_test.go index 551d3a8075..8e0b82ec0f 100644 --- a/plugin/evm/gossip_test.go +++ b/plugin/evm/gossip_test.go @@ -81,7 +81,7 @@ func TestGossipSubscribe(t *testing.T) { defer gossipTxPool.lock.RUnlock() for i, tx := range ethTxs { - require.Truef(gossipTxPool.bloom.Has(&GossipEthTx{Tx: tx}), "expected tx[%d] to be in bloom filter", i) + assert.Truef(c, gossipTxPool.bloom.Has(&GossipEthTx{Tx: tx}), "expected tx[%d] to be in bloom filter", i) } }, 30*time.Second,