From 296e67d8c63e2a63a452bea2353c4b9b501f2abc Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Fri, 13 Oct 2023 14:59:08 +0200 Subject: [PATCH] eth/fetcher: fix test --- eth/fetcher/tx_fetcher_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/fetcher/tx_fetcher_test.go b/eth/fetcher/tx_fetcher_test.go index 1df5a175c3..0aea66f00a 100644 --- a/eth/fetcher/tx_fetcher_test.go +++ b/eth/fetcher/tx_fetcher_test.go @@ -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")