aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_sendtxrcncl.py
diff options
context:
space:
mode:
authorGleb Naumenko <naumenko.gs@gmail.com>2022-11-08 12:18:40 +0200
committerGleb Naumenko <naumenko.gs@gmail.com>2022-11-08 12:18:48 +0200
commit6772cbf69cf075ac8dff3507bf9151400ed255b7 (patch)
tree0ace66237d05b3f02ffc5809da6f41da42b4f994 /test/functional/p2p_sendtxrcncl.py
parentae6bb6e71e3082dd783e78c52b3af649fd5256cc (diff)
downloadbitcoin-6772cbf69cf075ac8dff3507bf9151400ed255b7.tar.xz
tests: stabilize sendtxrcncl test
Diffstat (limited to 'test/functional/p2p_sendtxrcncl.py')
-rwxr-xr-xtest/functional/p2p_sendtxrcncl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p_sendtxrcncl.py b/test/functional/p2p_sendtxrcncl.py
index fed9832a7d..cef3f09216 100755
--- a/test/functional/p2p_sendtxrcncl.py
+++ b/test/functional/p2p_sendtxrcncl.py
@@ -110,8 +110,8 @@ class SendTxRcnclTest(BitcoinTestFramework):
self.log.info('valid SENDTXRCNCL received')
peer = self.nodes[0].add_p2p_connection(PeerNoVerack(), send_version=True, wait_for_verack=False)
- peer.send_message(create_sendtxrcncl_msg())
- self.wait_until(lambda : "sendtxrcncl" in self.nodes[0].getpeerinfo()[-1]["bytesrecv_per_msg"])
+ with self.nodes[0].assert_debug_log(["received: sendtxrcncl"]):
+ peer.send_message(create_sendtxrcncl_msg())
self.log.info('second SENDTXRCNCL triggers a disconnect')
with self.nodes[0].assert_debug_log(["(sendtxrcncl received from already registered peer); disconnecting"]):
peer.send_message(create_sendtxrcncl_msg())