Switch CNode::m_ping_start and CNetMessage::m_time to mockable time, so that tests can be added. Mockable time is also type-safe, since it uses std::chrono
Backport of core PR18638.
Differential D9129
net: Use mockable time for ping/pong, add tests Fabien on Feb 2 2021, 13:15. Authored by Tags None Subscribers None
Details
Switch CNode::m_ping_start and CNetMessage::m_time to mockable time, so that tests can be added. Mockable time is also type-safe, since it uses std::chrono Backport of core PR18638. ninja all check-all
Diff Detail
|