From ae40c10bcb72eb8f1aeaf89421a84781a566f934 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 30 Dec 2020 13:16:05 +0100 Subject: [PATCH] pytest: Stabilize test_onchain_timeout The timeout on the pay future was too short under valgrind. --- tests/test_closing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_closing.py b/tests/test_closing.py index 724b46f2a..4dc84aa8f 100644 --- a/tests/test_closing.py +++ b/tests/test_closing.py @@ -1516,7 +1516,7 @@ def test_onchain_timeout(node_factory, bitcoind, executor): # It should fail. 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). bitcoind.generate_block(2)