mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 14:54:26 +01:00
test_lightningd: Change test_pay0 to use sendpay.
This commit is contained in:
committed by
Christian Decker
parent
d9163dbb4f
commit
0489c7eb93
@@ -826,11 +826,19 @@ class LightningDTests(BaseLightningDTests):
|
||||
self.wait_for_routes(l1, [chanid])
|
||||
|
||||
# Get any-amount invoice
|
||||
inv = l2.rpc.invoice("any", "any", 'description')['bolt11']
|
||||
inv = l2.rpc.invoice("any", "any", 'description')
|
||||
rhash = inv['payment_hash']
|
||||
|
||||
routestep = {
|
||||
'msatoshi' : 0,
|
||||
'id' : l2.info['id'],
|
||||
'delay' : 10,
|
||||
'channel' : chanid
|
||||
}
|
||||
|
||||
# Amount must be nonzero!
|
||||
self.assertRaisesRegex(ValueError, 'WIRE_AMOUNT_BELOW_MINIMUM',
|
||||
l1.rpc.pay, inv, 0)
|
||||
l1.rpc.sendpay, to_json([routestep]), rhash)
|
||||
|
||||
def test_pay(self):
|
||||
l1,l2 = self.connect()
|
||||
|
||||
Reference in New Issue
Block a user