diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index a88e3af9f..a452d1f6b 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/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!