Adds deterministic regression coverage for the paused-send timeout introduced in #36667. Production behavior is unchanged.
Checks that enqueueing and send attempts preserve the original pause timer despite recent activity; expiration occurs strictly after TIMEOUT_INTERVAL; and draining sends bytes, clears the pause, and permits a fresh interval.
Uses mock time, a null socket while paused, and ZeroSock for draining. This does not test real backpressure, partial writes, handshakes, or concurrent behavior.
Validation of the submitted file contents:
- macOS arm64 Debug: focused test, full
net_tests, formatting and whitespace checks passed. - Docker Linux arm64
native_nowallet: 364 CTest entries passed; 392 functional passes, 87 configured skips. native_asan: 382 CTest entries passed; 491 functional passes, 12 configured skips.win64: full cross-build passed, includingtest_bitcoinand installer; no Windows runtime tests.native_tsan: all 381 CTest entries passed. The functional run failed intool_wallet.py: its file-size limit truncates LLVM 23.1.6 TSan's temporary backing file, causing SIGBUS/exit 66. A standalone C++ program reproduces this without Bitcoin code. Two supplemental wallet startup failures associated with OOM kills passed isolated serial reruns.
Keeping this draft because the full TSan job is not passing. No tests or sanitizer checks were disabled to obtain a pass.
AI assistance was used for implementation, review, validation, and this description.