Skip to content

Commit fadf7b8

Browse files
author
MarcoFalke
committed
test: Fix intermittent issue in rpc_net.py
1 parent cac29f5 commit fadf7b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/functional/rpc_net.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ def test_getnetworkinfo(self):
185185
self.nodes[0].setnetworkactive(state=False)
186186
assert_equal(self.nodes[0].getnetworkinfo()['networkactive'], False)
187187
# Wait a bit for all sockets to close
188-
self.wait_until(lambda: self.nodes[0].getnetworkinfo()['connections'] == 0, timeout=3)
188+
for n in self.nodes:
189+
self.wait_until(lambda: n.getnetworkinfo()['connections'] == 0, timeout=3)
189190

190191
with self.nodes[0].assert_debug_log(expected_msgs=['SetNetworkActive: true\n']):
191192
self.nodes[0].setnetworkactive(state=True)

0 commit comments

Comments
 (0)