mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
df-tests: send payment over opened channel
For good measure
This commit is contained in:
@@ -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 """
|
||||
|
||||
Reference in New Issue
Block a user