mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
pytest: Rename all fund_channel to fundchannel
This commit is contained in:
committed by
Christian Decker
parent
7260d9ea3d
commit
a777d21fb7
@@ -43,7 +43,7 @@ def test_stop_pending_fundchannel(node_factory, executor):
|
||||
os.kill(l2.daemon.proc.pid, signal.SIGSTOP)
|
||||
|
||||
# The fundchannel call will not terminate so run it in a future
|
||||
executor.submit(l1.fund_channel, l2, 10**6)
|
||||
executor.submit(l1.fundchannel, l2, 10**6)
|
||||
l1.daemon.wait_for_log('peer_out WIRE_OPEN_CHANNEL')
|
||||
|
||||
l1.rpc.stop()
|
||||
@@ -277,7 +277,7 @@ def test_ping(node_factory):
|
||||
l1.daemon.wait_for_log(r'Got pong 1000 bytes \({}\.\.\.\)'
|
||||
.format(l2.info['version']), timeout=1)
|
||||
|
||||
l1.fund_channel(l2, 10**5)
|
||||
l1.fundchannel(l2, 10**5)
|
||||
|
||||
# channeld pinging
|
||||
ping_tests(l1, l2)
|
||||
@@ -296,7 +296,7 @@ def test_htlc_sig_persistence(node_factory, bitcoind, executor):
|
||||
l2 = node_factory.get_node(disconnect=['+WIRE_COMMITMENT_SIGNED'])
|
||||
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
|
||||
l1.fund_channel(l2, 10**6)
|
||||
l1.fundchannel(l2, 10**6)
|
||||
f = executor.submit(l1.pay, l2, 31337000)
|
||||
l1.daemon.wait_for_log(r'HTLC out 0 RCVD_ADD_ACK_COMMIT->SENT_ADD_ACK_REVOCATION')
|
||||
l1.stop()
|
||||
@@ -347,7 +347,7 @@ def test_htlc_out_timeout(node_factory, bitcoind, executor):
|
||||
l2 = node_factory.get_node()
|
||||
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
|
||||
chanid = l1.fund_channel(l2, 10**6)
|
||||
chanid = l1.fundchannel(l2, 10**6)
|
||||
|
||||
# Wait for route propagation.
|
||||
l1.wait_channel_active(chanid)
|
||||
@@ -414,7 +414,7 @@ def test_htlc_in_timeout(node_factory, bitcoind, executor):
|
||||
l2 = node_factory.get_node()
|
||||
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
|
||||
chanid = l1.fund_channel(l2, 10**6)
|
||||
chanid = l1.fundchannel(l2, 10**6)
|
||||
|
||||
l1.wait_channel_active(chanid)
|
||||
sync_blockheight(bitcoind, [l1, l2])
|
||||
|
||||
Reference in New Issue
Block a user