You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make tests event-based by injecting time into Discovery, Reliability, and Fragmentation
Add an optional 'now' parameter (defaulting to steady_clock::now()) to all
time-dependent methods in Discovery, Reliability, and Fragmentation. This
allows tests to advance time deterministically without sleeping, making them
faster, more reliable, and immune to CI timing variability.
Tests converted from time-based (sleep_for) to event-based:
- Discovery: check_timeouts and touch_peer tests
- Reliability: all retransmission/timeout tests (7 sleeps removed)
- Fragmentation: cleanup_expired test
The only remaining sleep_for is in Integration.cpp's polling loop for
genuine async UDP networking, which is inherently time-dependent.
0 commit comments