Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix intermittent error in rpc_net.py (bitcoin#29030)
Asserting for the debug log message "Added connection peer=" is insufficient for ensuring that this new connection will show up in a following getpeerinfo() call, as the debug message is written in the CNode ctor, which means it hasn't necessarily been added to CConnman.m_nodes at this point. Solve this by using the recently introduced `wait_for_new_peer` helper, which is more robust. Fixes bitcoin#29030.
- Loading branch information