test: Combine sync_send_with_ping and sync_with_ping
This commit is contained in:
8 files changed
+12
-16
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user