Skip to content

Commit 49c0b8b

Browse files
committed
test: Bump timeouts in feature_index_prune and wallet_importdescriptors
Timeout issues where encountered when running functional tests with `--jobs=16 --extended`. Line in `feature_index_prune.py` took 101.6s, 96.6s, 103.0s across 3 runs on my machine, default limit is 60. Line in the `wallet_importdescriptors.py --descriptors` took 5.4s, 5.7s, 6.0s across 3 runs.
1 parent 23ba394 commit 49c0b8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/functional/feature_index_prune.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def sync_index(self, height):
3131
expected_stats = {
3232
'coinstatsindex': {'synced': True, 'best_block_height': height}
3333
}
34-
self.wait_until(lambda: self.nodes[1].getindexinfo() == expected_stats)
34+
self.wait_until(lambda: self.nodes[1].getindexinfo() == expected_stats, timeout=150)
3535

3636
expected = {**expected_filter, **expected_stats}
3737
self.wait_until(lambda: self.nodes[2].getindexinfo() == expected)

test/functional/wallet_importdescriptors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def run_test(self):
688688

689689
encrypted_wallet.walletpassphrase("passphrase", 99999)
690690
with concurrent.futures.ThreadPoolExecutor(max_workers=1) as thread:
691-
with self.nodes[0].assert_debug_log(expected_msgs=["Rescan started from block 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206... (slow variant inspecting all blocks)"], timeout=5):
691+
with self.nodes[0].assert_debug_log(expected_msgs=["Rescan started from block 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206... (slow variant inspecting all blocks)"], timeout=10):
692692
importing = thread.submit(encrypted_wallet.importdescriptors, requests=[descriptor])
693693

694694
# Set the passphrase timeout to 1 to test that the wallet remains unlocked during the rescan

0 commit comments

Comments
 (0)