Skip to content
Bitcoin Roots

v29.4-roots.3 · Commit 9: [PATCH 09/30] fix: complete reconstructed runtime integration

test/functional/p2p_message_capture.py

Before: test/functional/p2p_message_capture.py · After: test/functional/p2p_message_capture.py

File metadata
index 4c82adc58c97d28b78f3bb5070ee989b571f82cf..99b0e853c3dc0ec4d8ed7a3a5716fda872adf4a9 100755

Download original patch · Release notes

Diff rows 1–8 of 8. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

test/functional/p2p_message_capture.py CHANGED
@@ -62,6 +62,8 @@ class MessageCaptureTest(BitcoinTestFramework):
62
62
  # Connect a node so that the handshake occurs
63
63
  self.nodes[0].add_p2p_connection(P2PDataStore())
64
64
  self.nodes[0].disconnect_p2ps()
65
+ self.wait_until(lambda: glob.glob(os.path.join(capturedir, "*/msgs_recv.dat")))
66
+ self.wait_until(lambda: glob.glob(os.path.join(capturedir, "*/msgs_sent.dat")))
65
67
  recv_file = glob.glob(os.path.join(capturedir, "*/msgs_recv.dat"))[0]
66
68
  mini_parser(recv_file)
67
69
  sent_file = glob.glob(os.path.join(capturedir, "*/msgs_sent.dat"))[0]