File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,13 @@ def run_test(self):
48
48
self .mock_time = int (time .time ())
49
49
self .mock_forward (0 )
50
50
51
- # Setup the p2p connections
52
- no_verack_node = self .nodes [0 ].add_p2p_connection (TestP2PConn (), wait_for_verack = False )
53
- no_version_node = self .nodes [0 ].add_p2p_connection (TestP2PConn (), send_version = False , wait_for_verack = False )
54
- no_send_node = self .nodes [0 ].add_p2p_connection (TestP2PConn (), send_version = False , wait_for_verack = False )
51
+ # Setup the p2p connections, making sure the connections are established before the mocktime is bumped
52
+ with self .nodes [0 ].assert_debug_log (['Added connection peer=0' ]):
53
+ no_verack_node = self .nodes [0 ].add_p2p_connection (TestP2PConn (), wait_for_verack = False )
54
+ with self .nodes [0 ].assert_debug_log (['Added connection peer=1' ]):
55
+ no_version_node = self .nodes [0 ].add_p2p_connection (TestP2PConn (), send_version = False , wait_for_verack = False )
56
+ with self .nodes [0 ].assert_debug_log (['Added connection peer=2' ]):
57
+ no_send_node = self .nodes [0 ].add_p2p_connection (TestP2PConn (), send_version = False , wait_for_verack = False )
55
58
56
59
# Wait until we got the verack in response to the version. Though, don't wait for the other node to receive the
57
60
# verack, since we never sent one
You can’t perform that action at this time.
0 commit comments