diff --git a/test/functional/rpc_net.py b/test/functional/rpc_net.py index 1fed96ef5f..5cc1dc617b 100755 --- a/test/functional/rpc_net.py +++ b/test/functional/rpc_net.py @@ -115,6 +115,8 @@ class NetTest(DashTestFramework): no_version_peer_conntime = self.mocktime with self.nodes[0].assert_debug_log([f"Added connection peer={no_version_peer_id}"]): no_version_peer = self.nodes[0].add_p2p_connection(P2PInterface(), send_version=False, wait_for_verack=False) + if self.options.v2transport: + self.wait_until(lambda: self.nodes[0].getpeerinfo()[no_version_peer_id]["transport_protocol_type"] == "v2") peer_info = self.nodes[0].getpeerinfo()[no_version_peer_id] peer_info.pop("addr") peer_info.pop("addrbind")