mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
pytest: Stabilize test_onchain_timeout
The timeout on the pay future was too short under valgrind.
This commit is contained in:
committed by
Rusty Russell
parent
fc677e331a
commit
ae40c10bcb
@@ -1516,7 +1516,7 @@ def test_onchain_timeout(node_factory, bitcoind, executor):
|
|||||||
|
|
||||||
# It should fail.
|
# It should fail.
|
||||||
with pytest.raises(RpcError, match=r'WIRE_PERMANENT_CHANNEL_FAILURE: timed out'):
|
with pytest.raises(RpcError, match=r'WIRE_PERMANENT_CHANNEL_FAILURE: timed out'):
|
||||||
payfuture.result(5)
|
payfuture.result(TIMEOUT)
|
||||||
|
|
||||||
# 2 later, l1 spends HTLC (5 blocks total).
|
# 2 later, l1 spends HTLC (5 blocks total).
|
||||||
bitcoind.generate_block(2)
|
bitcoind.generate_block(2)
|
||||||
|
|||||||
Reference in New Issue
Block a user