v29.4-roots.1 · Commit 9: [PATCH 09/13] 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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
test/functional/p2p_message_capture.py
CHANGED
|
@@ -62,6 +62,8 @@ class MessageCaptureTest(BitcoinTestFramework):
|
|
| 62 |
# Connect a node so that the handshake occurs
|
| 63 |
self.nodes[0].add_p2p_connection(P2PDataStore())
|
| 64 |
self.nodes[0].disconnect_p2ps()
|
|
|
|
|
|
|
| 65 |
recv_file = glob.glob(os.path.join(capturedir, "*/msgs_recv.dat"))[0]
|
| 66 |
mini_parser(recv_file)
|
| 67 |
sent_file = glob.glob(os.path.join(capturedir, "*/msgs_sent.dat"))[0]
|
|
|
|
| 62 |
# Connect a node so that the handshake occurs
|
| 63 |
self.nodes[0].add_p2p_connection(P2PDataStore())
|
| 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")))
|
| 67 |
recv_file = glob.glob(os.path.join(capturedir, "*/msgs_recv.dat"))[0]
|
| 68 |
mini_parser(recv_file)
|
| 69 |
sent_file = glob.glob(os.path.join(capturedir, "*/msgs_sent.dat"))[0]
|