mirror of https://github.com/bitcoin/bitcoin
Merge bitcoin/bitcoin#29041: test: fix intermittent error in rpc_net.py (#29030)
pull/28890/headea00f982d2
test: fix intermittent error in rpc_net.py (#29030) (Sebastian Falbesoner) Pull request description: 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 (see #29006, commit00e0658e77
), which is more robust. Fixes #29030. ACKs for top commit: maflcko: lgtm ACKea00f982d2
Tree-SHA512: dda307949a466fb3b24408a8c213d307e0af2155f2e8b4e52c836a22397f9d218bf9d8c54ca55bae62a96d7566f27167db9311dd8801785c327234783af5ed00
commit
36fabb01b1
Loading…
Reference in new issue