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
@@ -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