diff --git a/tests/test_connection.py b/tests/test_connection.py index dc95b0e3c..2dd29645e 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -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})