mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
pytest: tighten a log test Owning output... with address type and confirmation
Because the call (wallet_extract_owned outputs) that prints that line can happen _before_ or _after_ confirmation in block, adding `CONFIRMED` in the later.
This commit is contained in:
committed by
Christian Decker
parent
eb3495c23d
commit
245807a085
@@ -66,8 +66,8 @@ def test_closing(node_factory, bitcoind):
|
||||
]
|
||||
bitcoind.generate_block(1)
|
||||
|
||||
l1.daemon.wait_for_log(r'Owning output .* txid %s' % closetxid)
|
||||
l2.daemon.wait_for_log(r'Owning output .* txid %s' % closetxid)
|
||||
l1.daemon.wait_for_log(r'Owning output.* \(SEGWIT\).* txid %s.* CONFIRMED' % closetxid)
|
||||
l2.daemon.wait_for_log(r'Owning output.* \(SEGWIT\).* txid %s.* CONFIRMED' % closetxid)
|
||||
|
||||
# Make sure both nodes have grabbed their close tx funds
|
||||
assert closetxid in set([o['txid'] for o in l1.rpc.listfunds()['outputs']])
|
||||
|
||||
Reference in New Issue
Block a user