mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
committed by
Rusty Russell
parent
ba36dfeba3
commit
dd334df80d
@@ -824,7 +824,8 @@ class LightningNode(object):
|
|||||||
# sendpay is async now
|
# sendpay is async now
|
||||||
self.rpc.sendpay([routestep], rhash)
|
self.rpc.sendpay([routestep], rhash)
|
||||||
# wait for sendpay to comply
|
# 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
|
# Note: this feeds through the smoother in update_feerate, so changing
|
||||||
# it on a running daemon may not give expected result!
|
# it on a running daemon may not give expected result!
|
||||||
|
|||||||
Reference in New Issue
Block a user