Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytests: extend the offline mode testcase #7675

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
Loading