From db8fdb848c0649c5b76b21a2f9f94221529f102e Mon Sep 17 00:00:00 2001 From: niftynei Date: Thu, 4 Feb 2021 13:15:56 -0600 Subject: [PATCH] df-tests: send payment over opened channel For good measure --- tests/test_connection.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index 03a166ed3..fd94b1e01 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -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 """