mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
test: Combine sync_send_with_ping and sync_with_ping
This commit is contained in:
@ -53,7 +53,7 @@ class P2PIBDTxRelayTest(BitcoinTestFramework):
|
||||
peer_inver.send_and_ping(msg_inv([CInv(t=MSG_WTX, h=txid)]))
|
||||
# The node should not send a getdata, but if it did, it would first delay 2 seconds
|
||||
self.nodes[0].setmocktime(int(time.time() + NONPREF_PEER_TX_DELAY))
|
||||
peer_inver.sync_send_with_ping()
|
||||
peer_inver.sync_with_ping()
|
||||
with p2p_lock:
|
||||
assert txid not in peer_inver.getdata_requests
|
||||
self.nodes[0].disconnect_p2ps()
|
||||
|
Reference in New Issue
Block a user