test: Combine sync_send_with_ping and sync_with_ping

This commit is contained in:
MarcoFalke
2023-09-05 12:11:54 +02:00
parent 260445bee8
commit fae0b21e6c
8 changed files with 12 additions and 16 deletions

View File

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