fix(remote): end a remote session from before its create to after its DELETE

This commit is contained in:
imSp4rky
2026-11-30 13:56:59 -07:00
parent 3634fc5686
commit 34a3820eb8
34 changed files with 1719 additions and 276 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ import requests
from aiohttp import WSMsgType, web
from click.testing import CliRunner
from tests.remote.sessions import hold_session
from tests.remote.unit.test_session_reopen import make_service
from unshackle.core import remote_service
from unshackle.core.api import handlers
@@ -240,7 +241,7 @@ def test_server_text_loses_its_control_characters() -> None:
def test_relayed_server_logs_lose_their_control_characters(monkeypatch: pytest.MonkeyPatch) -> None:
service = RemoteService.__new__(RemoteService)
service._session_id = "sid"
hold_session(service, "sid")
seen: list[str] = []
service.log = SimpleNamespace(log=lambda level, message: seen.append(message)) # type: ignore[assignment]
service.client = SimpleNamespace(