Browse Source

fix: makes testutils ln.pay assert status complete

`waitsendpay` in `lightningd/pay.c` can also return 'pending' and 'failed',
we should check that.
travis-debug
Michael Schmoock 5 years ago
committed by Rusty Russell
parent
commit
dd334df80d
  1. 3
      contrib/pyln-testing/pyln/testing/utils.py

3
contrib/pyln-testing/pyln/testing/utils.py

@ -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…
Cancel
Save