Skip to content

Commit

Permalink
pytests: extend the offline mode testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
m-schmoock authored and vincenzopalazzo committed Sep 17, 2024
1 parent 7725ca1 commit 02176f7
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit 02176f7

Please sign in to comment.