Skip to content

Commit 628d002

Browse files
committed
pytest: fix flake in test_listforwards_and_listhtlcs
We need to make sure the close tx is generated where we expect, so the following code doesn't wait foreverL ``` 2025-05-08T04:31:31.1071194Z > assert l2.rpc.wait('htlcs', 'deleted', 3)['deleted'] == 5 2025-05-08T04:31:31.1071518Z 2025-05-08T04:31:31.1071645Z tests/test_misc.py:3398: ... 2025-05-08T04:31:31.1079841Z E Failed: Timeout >1800.0s ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent a975272 commit 628d002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3382,7 +3382,7 @@ def test_listforwards_and_listhtlcs(node_factory, bitcoind):
33823382
assert l2.rpc.wait('htlcs', 'deleted', 0)['deleted'] == 0
33833383

33843384
# 99 blocks is not enough for them to be deleted.
3385-
bitcoind.generate_block(97)
3385+
bitcoind.generate_block(97, wait_for_mempool=1)
33863386
assert l2.rpc.wait('htlcs', 'deleted', 0)['deleted'] == 0
33873387

33883388
# This will forget c23

0 commit comments

Comments
 (0)