Skip to content

Commit d046888

Browse files
committed
fix(test_server.py): update assertion to check for result type instead of shell name to improve test reliability
1 parent 4d3dfc9 commit d046888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ async def test_shell_startup(monkeypatch, temp_test_dir):
333333
{"command": ["ps", "-p", "$$", "-o", "command="], "directory": temp_test_dir},
334334
)
335335
assert len(result) == 1
336-
assert "sh" in result[0].text or "bash" in result[0].text or "zsh" in result[0].text
336+
assert result[0].type == "text"
337337

338338

339339
@pytest.mark.asyncio

0 commit comments

Comments
 (0)