mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
fix: makes testutils ln.pay assert status complete
`waitsendpay` in `lightningd/pay.c` can also return 'pending' and 'failed', we should check that.
This commit is contained in:
parent
ba36dfeba3
commit
dd334df80d
@ -824,7 +824,8 @@ class LightningNode(object):
|
||||
# sendpay is async now
|
||||
self.rpc.sendpay([routestep], rhash)
|
||||
# wait for sendpay to comply
|
||||
self.rpc.waitsendpay(rhash)
|
||||
result = self.rpc.waitsendpay(rhash)
|
||||
assert(result.get('status') == 'complete')
|
||||
|
||||
# Note: this feeds through the smoother in update_feerate, so changing
|
||||
# it on a running daemon may not give expected result!
|
||||
|
Loading…
Reference in New Issue
Block a user