mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-04 20:51:27 +02:00
test: Fix intermittent issue in rpc_net.py
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user