eth/fetcher: fix test

This commit is contained in:
Marius van der Wijden 2023-10-13 14:59:08 +02:00
parent 80551de81b
commit 296e67d8c6

View file

@ -2009,7 +2009,7 @@ func TestTransactionForgotten(t *testing.T) {
)
go fetcher.loop()
tx1 := types.NewTransaction(0, common.Address{}, common.Big0, 0, common.Big0, nil)
tx1.SetTime(time.Now().Add(-maxTxUnderpricedTimeout))
tx1.SetTime(time.Now().Add(-maxTxUnderpricedTimeout - 1*time.Second))
tx2 := types.NewTransaction(1, common.Address{}, common.Big0, 0, common.Big0, nil)
if fetcher.isKnownUnderpriced(tx1.Hash()) {
t.Fatal("unknown hash can not be underpriced")