mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
pytest: test_pay flake fix.
This is almost certainly because the HTLCs are not fully settled, so wait for that: ``` 2023-06-20T11:37:56.2332158Z assert apys_2[0]['our_start_balance_msat'] == Millisatoshi(0) 2023-06-20T11:37:56.2332443Z > assert apys_1[0]['routed_out_msat'] == apys_2[0]['routed_in_msat'] 2023-06-20T11:37:56.2332571Z E assert 1892216msat == 2810170msat 2023-06-20T11:37:56.2332580Z 2023-06-20T11:37:56.2332717Z tests/test_pay.py:81: AssertionError ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -3437,7 +3437,7 @@ def test_setconfig(node_factory, bitcoind):
|
||||
|
||||
l1.fundchannel(l2, 10**6)
|
||||
txid = l1.rpc.close(l2.info['id'])['txid']
|
||||
# Make sure we're completely closed!
|
||||
# Make sure we're completely closed!
|
||||
bitcoind.generate_block(1, wait_for_mempool=txid)
|
||||
sync_blockheight(bitcoind, [l1, l2])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user