mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 19:43:13 +02:00
test: Combine sync_send_with_ping and sync_with_ping
This commit is contained in:
@@ -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