mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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 <vincenzopalazzodev@gmail.com>
This commit is contained in:
@@ -3146,9 +3146,9 @@ def test_partial_payment(node_factory, bitcoind, executor):
|
|||||||
l2.rpc.dev_reenable_commit(l1.info['id'])
|
l2.rpc.dev_reenable_commit(l1.info['id'])
|
||||||
l3.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
|
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
|
assert res['partid'] == 2
|
||||||
|
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
|
|||||||
Reference in New Issue
Block a user