Skip to content

Commit d39262e

Browse files
fjahrachow101
authored andcommitted
test: Wait for local services to update in feature_assumeutxo
Github-Pull: bitcoin#30880 Rebased-From: 19f4a7c
1 parent b329ed7 commit d39262e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/feature_assumeutxo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ def test_sync_from_assumeutxo_node(self, snapshot):
313313
self.sync_blocks(nodes=(miner, snapshot_node))
314314
# Check the base snapshot block was stored and ensure node signals full-node service support
315315
self.wait_until(lambda: not try_rpc(-1, "Block not found", snapshot_node.getblock, snapshot_block_hash))
316-
assert 'NETWORK' in snapshot_node.getnetworkinfo()['localservicesnames']
316+
self.wait_until(lambda: 'NETWORK' in snapshot_node.getnetworkinfo()['localservicesnames'])
317317

318-
# Now the snapshot_node is sync, verify the ibd_node can sync from it
318+
# Now that the snapshot_node is synced, verify the ibd_node can sync from it
319319
self.connect_nodes(snapshot_node.index, ibd_node.index)
320320
assert 'NETWORK' in ibd_node.getpeerinfo()[0]['servicesnames']
321321
self.sync_blocks(nodes=(ibd_node, snapshot_node))
@@ -660,7 +660,7 @@ def check_tx_counts(final: bool) -> None:
660660
self.wait_until(lambda: len(n2.getchainstates()['chainstates']) == 1)
661661

662662
# Once background chain sync completes, the full node must start offering historical blocks again.
663-
assert {'NETWORK', 'NETWORK_LIMITED'}.issubset(n2.getnetworkinfo()['localservicesnames'])
663+
self.wait_until(lambda: {'NETWORK', 'NETWORK_LIMITED'}.issubset(n2.getnetworkinfo()['localservicesnames']))
664664

665665
completed_idx_state = {
666666
'basic block filter index': COMPLETE_IDX,

0 commit comments

Comments
 (0)