Skip to content

Commit 9afdfe0

Browse files
committed
test_server(fix[isolation]): add socket_name to test_tmux_bin_custom_path
why: Server created without socket_name queries the ambient tmux server, breaking the isolation pattern used by all other tests in the file. what: - Add socket_name="test_tmux_bin" to the Server constructor
1 parent a02cce5 commit 9afdfe0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def test_tmux_bin_custom_path(caplog: pytest.LogCaptureFixture) -> None:
426426
"""Custom tmux_bin path is used for commands."""
427427
tmux_path = shutil.which("tmux")
428428
assert tmux_path is not None
429-
s = Server(tmux_bin=tmux_path)
429+
s = Server(socket_name="test_tmux_bin", tmux_bin=tmux_path)
430430
assert s.tmux_bin == tmux_path
431431
with caplog.at_level(logging.DEBUG, logger="libtmux.common"):
432432
s.cmd("list-sessions")

0 commit comments

Comments
 (0)