Skip to content

Commit b0dea8c

Browse files
committed
test: extra logs for wait-for-CL and wait-for-IS
1 parent 49ae952 commit b0dea8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,7 @@ def check_instantlock():
16521652
return node.getrawtransaction(txid, True)["instantlock"]
16531653
except:
16541654
return False
1655+
self.log.info(f"Expecting InstantLock for {txid}")
16551656
if self.wait_until(check_instantlock, timeout=timeout, sleep=1, do_assert=expected) and not expected:
16561657
raise AssertionError("waiting unexpectedly succeeded")
16571658

@@ -1662,6 +1663,7 @@ def check_chainlocked_block():
16621663
return block["confirmations"] > 0 and block["chainlock"]
16631664
except:
16641665
return False
1666+
self.log.info(f"Expecting ChainLock for {block_hash}")
16651667
if self.wait_until(check_chainlocked_block, timeout=timeout, sleep=0.1, do_assert=expected) and not expected:
16661668
raise AssertionError("waiting unexpectedly succeeded")
16671669

0 commit comments

Comments
 (0)