mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
test: Fix intermittent issue in rpc_net.py
This commit is contained in:
parent
cac29f5cd6
commit
fadf7b8fef
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue