Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion tests/test_clnrest.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def test_websocket_upgrade_header(node_factory):
@sio.event
def message(data):
notifications.append(data)
with pytest.raises(socketio.exceptions.ConnectionError, match="Unexpected response from server"):
with pytest.raises(socketio.exceptions.ConnectionError):
sio.connect(base_url)

time.sleep(2)
Expand Down
7 changes: 4 additions & 3 deletions tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,9 +1171,9 @@ def test_cli_multiline_help(node_factory):
'--lightning-dir={}'
.format(l1.daemon.lightning_dir),
'help', 'helpme']).decode('utf-8')
assert out == ("helpme msat \n"
" This is a message which consumes multiple lines and thus should\n"
" be well-formatted by lightning-cli help\n")
assert ("helpme msat \n"
" This is a message which consumes multiple lines and thus should\n"
" be well-formatted by lightning-cli help\n" in out)


def test_cli_commando(node_factory):
Expand Down Expand Up @@ -4382,6 +4382,7 @@ def test_setconfig(node_factory, bitcoind):
assert lines == ["# Created and update by setconfig, but you can edit this manually when node is stopped.", "min-capacity-sat=400000"]


@pytest.mark.skipif(os.getuid() == 0, reason="Test requires non-root user for permission checks to work")
def test_setconfig_access(node_factory, bitcoind):
"""Test that we correctly fail (not crash) if config file/dir not writable"""

Expand Down
Loading