go-ethereum/tests/fuzzers/txfetcher
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
..
corpus eth: rework tx fetcher to use O(1) ops + manage network requests 2020-02-13 15:27:15 +02:00
txfetcher_fuzzer.go eth/fetcher: Fix flaky TestTransactionForgotten test using mock clock (#31468) 2025-04-10 11:26:35 +02:00
txfetcher_test.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00