aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2024-09-12 16:16:54 +0200
committerAva Chow <github@achow101.com>2024-09-12 15:02:05 -0400
commitd39262e5d41e92d22e020d283ddb6e4e406647b2 (patch)
tree0f249b3993670f73f53bec53449c180f04eda3cc /test/functional
parentb329ed739b7311b3b47cae1ef8d576a90e0a36a1 (diff)
test: Wait for local services to update in feature_assumeutxo
Github-Pull: bitcoin/bitcoin#30880 Rebased-From: 19f4a7c95a99162122068d4badffeea240967a65
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/feature_assumeutxo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/feature_assumeutxo.py b/test/functional/feature_assumeutxo.py
index b7d8192430..91957fd17e 100755
--- a/test/functional/feature_assumeutxo.py
+++ b/test/functional/feature_assumeutxo.py
@@ -313,9 +313,9 @@ class AssumeutxoTest(BitcoinTestFramework):
self.sync_blocks(nodes=(miner, snapshot_node))
# Check the base snapshot block was stored and ensure node signals full-node service support
self.wait_until(lambda: not try_rpc(-1, "Block not found", snapshot_node.getblock, snapshot_block_hash))
- assert 'NETWORK' in snapshot_node.getnetworkinfo()['localservicesnames']
+ self.wait_until(lambda: 'NETWORK' in snapshot_node.getnetworkinfo()['localservicesnames'])
- # Now the snapshot_node is sync, verify the ibd_node can sync from it
+ # Now that the snapshot_node is synced, verify the ibd_node can sync from it
self.connect_nodes(snapshot_node.index, ibd_node.index)
assert 'NETWORK' in ibd_node.getpeerinfo()[0]['servicesnames']
self.sync_blocks(nodes=(ibd_node, snapshot_node))
@@ -660,7 +660,7 @@ class AssumeutxoTest(BitcoinTestFramework):
self.wait_until(lambda: len(n2.getchainstates()['chainstates']) == 1)
# Once background chain sync completes, the full node must start offering historical blocks again.
- assert {'NETWORK', 'NETWORK_LIMITED'}.issubset(n2.getnetworkinfo()['localservicesnames'])
+ self.wait_until(lambda: {'NETWORK', 'NETWORK_LIMITED'}.issubset(n2.getnetworkinfo()['localservicesnames']))
completed_idx_state = {
'basic block filter index': COMPLETE_IDX,