1
0
Fork 0
forked from forks/go-ethereum
go-ethereum-modded-tocallarg/eth/fetcher
crStiv 2547bb28a4
eth/fetcher: Fix flaky TestTransactionForgotten test using mock clock (#31468)
Fixes #31169

The TestTransactionForgotten test was flaky due to real time
dependencies. This PR:

- Replaces real time with mock clock for deterministic timing control
- Adds precise state checks at timeout boundaries
- Verifies underpriced cache states and cleanup
- Improves test reliability by controlling transaction timestamps
- Adds checks for transaction re-enqueueing behavior

The changes ensure consistent test behavior without timing-related
flakiness.

---------

Co-authored-by: Zsolt Felfoldi <zsfelfoldi@gmail.com>
2025-04-10 11:26:35 +02:00
..
tx_fetcher.go eth/fetcher: Fix flaky TestTransactionForgotten test using mock clock (#31468) 2025-04-10 11:26:35 +02:00
tx_fetcher_test.go eth/fetcher: Fix flaky TestTransactionForgotten test using mock clock (#31468) 2025-04-10 11:26:35 +02:00