go-ethereum/eth/txtracker
Csaba Kiraly 5014761cf1 eth/txtracker: strengthen TestNotifyReceived assertions
The original assertions read stats["peerA"].Finalized and .RecentIncluded,
both of which return zero for a missing key — so the test would pass even
if NotifyAccepted were a complete no-op, contradicting its stated purpose.

Assert that exactly one peer entry exists, peerA is present, and the
internal txs map and FIFO order slice are populated as NotifyAccepted is
meant to do.
2026-04-13 16:56:09 +02:00
..
tracker.go eth/txtracker: replace time.Sleep with deterministic step channel 2026-04-11 16:35:54 +02:00
tracker_test.go eth/txtracker: strengthen TestNotifyReceived assertions 2026-04-13 16:56:09 +02:00