diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2022-12-03 17:43:14 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2022-12-03 17:42:05 +0100 |
commit | fadf7b8fef5ef7111e4634137f8b961b21217cdb (patch) | |
tree | d5c33472dcff9882b37d1b60950281a538107db4 /test | |
parent | cac29f5cd66f005ce65edd697990d495a904a1f1 (diff) |
test: Fix intermittent issue in rpc_net.py
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/rpc_net.py | 3 |
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) |