aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_net.py
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2022-12-03 17:43:14 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2022-12-03 17:42:05 +0100
commitfadf7b8fef5ef7111e4634137f8b961b21217cdb (patch)
treed5c33472dcff9882b37d1b60950281a538107db4 /test/functional/rpc_net.py
parentcac29f5cd66f005ce65edd697990d495a904a1f1 (diff)
downloadbitcoin-fadf7b8fef5ef7111e4634137f8b961b21217cdb.tar.xz
test: Fix intermittent issue in rpc_net.py
Diffstat (limited to 'test/functional/rpc_net.py')
-rwxr-xr-xtest/functional/rpc_net.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/rpc_net.py b/test/functional/rpc_net.py
index 01334e2d57..0501befe0f 100755
--- a/test/functional/rpc_net.py
+++ b/test/functional/rpc_net.py
@@ -185,7 +185,8 @@ class NetTest(BitcoinTestFramework):
self.nodes[0].setnetworkactive(state=False)
assert_equal(self.nodes[0].getnetworkinfo()['networkactive'], False)
# Wait a bit for all sockets to close
- self.wait_until(lambda: self.nodes[0].getnetworkinfo()['connections'] == 0, timeout=3)
+ for n in self.nodes:
+ self.wait_until(lambda: n.getnetworkinfo()['connections'] == 0, timeout=3)
with self.nodes[0].assert_debug_log(expected_msgs=['SetNetworkActive: true\n']):
self.nodes[0].setnetworkactive(state=True)