Skip to content

Commit

Permalink
tests: fix use of require.EventuallyWithT (#1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush authored Nov 4, 2024
1 parent d9c210a commit 4e0e5d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/test_blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/evm/gossip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4e0e5d2

Please sign in to comment.