File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,9 @@ def run_test(self):
138
138
# Give the node enough time to possibly leak out a message
139
139
time .sleep (PEER_TIMEOUT + 2 )
140
140
141
+ self .log .info ("Connect peer to ensure the net thread runs the disconnect logic at least once" )
142
+ self .nodes [0 ].add_p2p_connection (P2PInterface ())
143
+
141
144
# Make sure only expected messages came in
142
145
assert not no_version_idle_peer .unexpected_msg
143
146
assert not no_version_idle_peer .got_wtxidrelay
@@ -169,7 +172,7 @@ def run_test(self):
169
172
170
173
self .log .info ('Check that old peers are disconnected' )
171
174
p2p_old_peer = self .nodes [0 ].add_p2p_connection (P2PInterface (), send_version = False , wait_for_verack = False )
172
- with self .nodes [0 ].assert_debug_log (['peer=4 using obsolete version 31799; disconnecting' ]):
175
+ with self .nodes [0 ].assert_debug_log ([" using obsolete version 31799; disconnecting" ]):
173
176
p2p_old_peer .send_message (self .create_old_version (31799 ))
174
177
p2p_old_peer .wait_for_disconnect ()
175
178
You can’t perform that action at this time.
0 commit comments