Skip to content

Commit 067aa25

Browse files
committed
test: use default delay 0.05 for waiter of chainlock and chainlocked blocks
1 parent d9f52ac commit 067aa25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,15 +1954,15 @@ def check_chainlocked_block():
19541954
except:
19551955
return False
19561956
self.log.info(f"Expecting ChainLock for {block_hash}")
1957-
if self.wait_until(check_chainlocked_block, timeout=timeout, sleep=0.1, do_assert=expected) and not expected:
1957+
if self.wait_until(check_chainlocked_block, timeout=timeout, do_assert=expected) and not expected:
19581958
raise AssertionError("waiting unexpectedly succeeded")
19591959

19601960
def wait_for_chainlocked_block_all_nodes(self, block_hash, timeout=15, expected=True):
19611961
for node in self.nodes:
19621962
self.wait_for_chainlocked_block(node, block_hash, expected=expected, timeout=timeout)
19631963

19641964
def wait_for_best_chainlock(self, node, block_hash, timeout=15):
1965-
self.wait_until(lambda: node.getbestchainlock()["blockhash"] == block_hash, timeout=timeout, sleep=0.1)
1965+
self.wait_until(lambda: node.getbestchainlock()["blockhash"] == block_hash, timeout=timeout)
19661966

19671967
def wait_for_sporks_same(self, timeout=30):
19681968
def check_sporks_same():

0 commit comments

Comments
 (0)