From bf9c4df0de7f369d442ad93033a75bac42deb98c Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Fri, 24 Mar 2023 00:37:01 +0100 Subject: [PATCH] test: add the timeout to the waitpay command Inside our integration testing we get another timeout, so this commit adds a timeout to the waitpay command to avoid waiting forever. Signed-off-by: Vincenzo Palazzo --- tests/test_pay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pay.py b/tests/test_pay.py index 5d9fe8f58..09964a788 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -3146,9 +3146,9 @@ def test_partial_payment(node_factory, bitcoind, executor): l2.rpc.dev_reenable_commit(l1.info['id']) l3.rpc.dev_reenable_commit(l1.info['id']) - res = l1.rpc.waitsendpay(payment_hash=inv['payment_hash'], partid=1) + res = l1.rpc.waitsendpay(payment_hash=inv['payment_hash'], partid=1, timeout=TIMEOUT) assert res['partid'] == 1 - res = l1.rpc.waitsendpay(payment_hash=inv['payment_hash'], partid=2) + res = l1.rpc.waitsendpay(payment_hash=inv['payment_hash'], partid=2, timeout=TIMEOUT) assert res['partid'] == 2 for i in range(2):