From e09d7ab348f4546a7fc96482578e3f474071737a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 21 Mar 2023 10:33:41 +1030 Subject: [PATCH] pytest: add timeout to test_feerate_stress. This seems to be getting stuck in CI, so make sure we time out if it happens. Signed-off-by: Rusty Russell --- tests/test_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index 8de926f61e25..4c08924eb09b 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -3437,9 +3437,9 @@ def test_feerate_stress(node_factory, executor): wait_for(lambda: l1.rpc.getpeer(l2.info['id'])['connected']) # We can get TEMPORARY_CHANNEL_FAILURE due to disconnect, too. with pytest.raises(RpcError, match='WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS|WIRE_TEMPORARY_CHANNEL_FAILURE'): - l1.rpc.waitsendpay("{:064x}".format(l1done - 1)) + l1.rpc.waitsendpay("{:064x}".format(l1done - 1), timeout=TIMEOUT) with pytest.raises(RpcError, match='WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS|WIRE_TEMPORARY_CHANNEL_FAILURE'): - l2.rpc.waitsendpay("{:064x}".format(l2done - 1)) + l2.rpc.waitsendpay("{:064x}".format(l2done - 1), timeout=TIMEOUT) l1.rpc.call('dev-feerate', [l2.info['id'], rate - 5]) assert not l1.daemon.is_in_log('Bad.*signature') assert not l2.daemon.is_in_log('Bad.*signature')