test-utils: add the bolt11 invoice

nice to have for making tests that assert on description/bolt data
This commit is contained in:
niftynei 2022-07-19 17:04:40 +09:30 committed by Rusty Russell
parent ab94c557c7
commit 5c45939acf

View file

@ -1110,7 +1110,7 @@ class LightningNode(object):
}
# sendpay is async now
self.rpc.sendpay([routestep], rhash, payment_secret=psecret)
self.rpc.sendpay([routestep], rhash, payment_secret=psecret, bolt11=inv['bolt11'])
# wait for sendpay to comply
result = self.rpc.waitsendpay(rhash)
assert(result.get('status') == 'complete')