mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
df-tests: send payment over opened channel
For good measure
This commit is contained in:
parent
84ed942dee
commit
db8fdb848c
1 changed files with 7 additions and 1 deletions
|
@ -962,12 +962,18 @@ def test_v2_open(node_factory, bitcoind, chainparams):
|
|||
# Wait for it to arrive.
|
||||
wait_for(lambda: len(l1.rpc.listfunds()['outputs']) > 0)
|
||||
|
||||
l1.rpc.fundchannel(l2.info['id'], 100000)
|
||||
l1.rpc.fundchannel(l2.info['id'], 'all')
|
||||
|
||||
bitcoind.generate_block(1)
|
||||
sync_blockheight(bitcoind, [l1])
|
||||
l1.daemon.wait_for_log(' to CHANNELD_NORMAL')
|
||||
|
||||
# Send a payment over the channel
|
||||
p = l2.rpc.invoice(100000, 'testpayment', 'desc')
|
||||
l1.rpc.pay(p['bolt11'])
|
||||
result = l1.rpc.waitsendpay(p['payment_hash'])
|
||||
assert(result['status'] == 'complete')
|
||||
|
||||
|
||||
def test_funding_push(node_factory, bitcoind, chainparams):
|
||||
""" Try to push peer some sats """
|
||||
|
|
Loading…
Add table
Reference in a new issue