test: Combine sync_send_with_ping and sync_with_ping

This commit is contained in:
MarcoFalke
2023-09-05 12:11:54 +02:00
parent 260445bee8
commit fae0b21e6c
8 changed files with 12 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ class P2PAddrFetch(BitcoinTestFramework):
self.assert_getpeerinfo(peer_ids=[peer_id])
self.log.info("Check that we send getaddr but don't try to sync headers with the addr-fetch peer")
peer.sync_send_with_ping()
peer.sync_with_ping()
with p2p_lock:
assert peer.message_count['getaddr'] == 1
assert peer.message_count['getheaders'] == 0