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:
parent
dae92c5830
commit
bf9c4df0de
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue