mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
pytests: extend the offline mode testcase
This commit is contained in:
parent
7725ca1dbc
commit
02176f7004
@ -4492,11 +4492,16 @@ def test_reconnect_no_additional_transient_failure(node_factory, bitcoind):
|
||||
assert not l1.daemon.is_in_log(f"{l2id}-chan#1: Peer transient failure in CHANNELD_NORMAL: Disconnected", start=offset1)
|
||||
|
||||
|
||||
def test_offline_fd_check(node_factory):
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_offline(node_factory):
|
||||
# if get_node starts it, it'll expect an address, so do it manually.
|
||||
l1 = node_factory.get_node(options={"offline": None}, start=False)
|
||||
l1.daemon.start()
|
||||
|
||||
# we expect it to log offline mode an not to create any listener
|
||||
assert l1.daemon.is_in_log("Started in offline mode!")
|
||||
assert not l1.daemon.is_in_log("connectd: Created listener on")
|
||||
|
||||
|
||||
def test_last_stable_connection(node_factory):
|
||||
l1, l2 = node_factory.line_graph(2, opts={'may_reconnect': True})
|
||||
|
Loading…
Reference in New Issue
Block a user