test: Combine sync_send_with_ping and sync_with_ping

This commit is contained in:
MarcoFalke committed 2023-09-05 12:11:10 +02:00
1 parent 260445bee8
commit fae0b21e6c
8 files changed
+12 -16

No files matched your search

+1 -1
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