mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
df-tests: test_reconnect_sender_add1, others
We're still ignoring multifundchannel failure tests, but now we use the 'dual-fund' flag instead of a blanket true.
This commit is contained in:
committed by
Christian Decker
parent
d9c68a708a
commit
7eb6213fca
@@ -602,6 +602,9 @@ def test_reconnect_sender_add(node_factory):
|
|||||||
'-WIRE_REVOKE_AND_ACK',
|
'-WIRE_REVOKE_AND_ACK',
|
||||||
'@WIRE_REVOKE_AND_ACK',
|
'@WIRE_REVOKE_AND_ACK',
|
||||||
'+WIRE_REVOKE_AND_ACK']
|
'+WIRE_REVOKE_AND_ACK']
|
||||||
|
if EXPERIMENTAL_DUAL_FUND:
|
||||||
|
disconnects = ['=WIRE_COMMITMENT_SIGNED'] + disconnects
|
||||||
|
|
||||||
# Feerates identical so we don't get gratuitous commit to update them
|
# Feerates identical so we don't get gratuitous commit to update them
|
||||||
l1 = node_factory.get_node(disconnect=disconnects,
|
l1 = node_factory.get_node(disconnect=disconnects,
|
||||||
may_reconnect=True,
|
may_reconnect=True,
|
||||||
@@ -1022,6 +1025,7 @@ def test_funding_by_utxos(node_factory, bitcoind):
|
|||||||
|
|
||||||
|
|
||||||
@unittest.skipIf(not DEVELOPER, "needs dev_forget_channel")
|
@unittest.skipIf(not DEVELOPER, "needs dev_forget_channel")
|
||||||
|
@unittest.skipIf(EXPERIMENTAL_DUAL_FUND, "Uses fundchannel_start")
|
||||||
def test_funding_external_wallet_corners(node_factory, bitcoind):
|
def test_funding_external_wallet_corners(node_factory, bitcoind):
|
||||||
l1 = node_factory.get_node(may_reconnect=True)
|
l1 = node_factory.get_node(may_reconnect=True)
|
||||||
l2 = node_factory.get_node(may_reconnect=True)
|
l2 = node_factory.get_node(may_reconnect=True)
|
||||||
@@ -1117,6 +1121,7 @@ def test_funding_external_wallet_corners(node_factory, bitcoind):
|
|||||||
|
|
||||||
|
|
||||||
@unittest.skipIf(SLOW_MACHINE and not VALGRIND, "Way too taxing on CI machines")
|
@unittest.skipIf(SLOW_MACHINE and not VALGRIND, "Way too taxing on CI machines")
|
||||||
|
@unittest.skipIf(EXPERIMENTAL_DUAL_FUND, "requires fundchannel_start")
|
||||||
def test_funding_cancel_race(node_factory, bitcoind, executor):
|
def test_funding_cancel_race(node_factory, bitcoind, executor):
|
||||||
l1 = node_factory.get_node()
|
l1 = node_factory.get_node()
|
||||||
|
|
||||||
@@ -1265,6 +1270,7 @@ def test_funding_close_upfront(node_factory, bitcoind):
|
|||||||
|
|
||||||
|
|
||||||
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
|
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
|
||||||
|
@unittest.skipIf(EXPERIMENTAL_DUAL_FUND, "v2 doesn't work with fundchannel_start")
|
||||||
def test_funding_external_wallet(node_factory, bitcoind):
|
def test_funding_external_wallet(node_factory, bitcoind):
|
||||||
l1, l2, l3 = node_factory.get_nodes(3, opts=[{'funding-confirms': 2},
|
l1, l2, l3 = node_factory.get_nodes(3, opts=[{'funding-confirms': 2},
|
||||||
{'funding-confirms': 2}, {}])
|
{'funding-confirms': 2}, {}])
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from pyln.client import RpcError
|
|||||||
from threading import Event
|
from threading import Event
|
||||||
from pyln.testing.utils import (
|
from pyln.testing.utils import (
|
||||||
DEVELOPER, TIMEOUT, VALGRIND, DEPRECATED_APIS, sync_blockheight, only_one,
|
DEVELOPER, TIMEOUT, VALGRIND, DEPRECATED_APIS, sync_blockheight, only_one,
|
||||||
wait_for, TailableProc, env
|
wait_for, TailableProc, env, EXPERIMENTAL_DUAL_FUND
|
||||||
)
|
)
|
||||||
from utils import (
|
from utils import (
|
||||||
check_coin_moves, account_balance
|
check_coin_moves, account_balance
|
||||||
@@ -161,6 +161,7 @@ def test_bitcoin_ibd(node_factory, bitcoind):
|
|||||||
assert 'warning_bitcoind_sync' not in l1.rpc.getinfo()
|
assert 'warning_bitcoind_sync' not in l1.rpc.getinfo()
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skipIf(EXPERIMENTAL_DUAL_FUND, "Requires fundchannel_start")
|
||||||
def test_lightningd_still_loading(node_factory, bitcoind, executor):
|
def test_lightningd_still_loading(node_factory, bitcoind, executor):
|
||||||
"""Test that we recognize we haven't got all blocks from bitcoind"""
|
"""Test that we recognize we haven't got all blocks from bitcoind"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user