pytests: extend the offline mode testcase

This commit is contained in:
Michael Schmoock 2024-09-17 17:27:03 +02:00 committed by Vincenzo Palazzo
parent 7725ca1dbc
commit 02176f7004

View File

@ -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})