fix(remote): end the remote session when a signal or a closed console stops the client

This commit is contained in:
imSp4rky
2026-11-30 17:29:35 -07:00
parent ffe812f054
commit bafce963d3
14 changed files with 1225 additions and 31 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ from tests.remote.unit.test_remote_loopback import (
from tests.remote.unit.test_remote_service_helpers import blob
from tests.remote.unit.test_session_reopen import SERVER, make_service
from tests.remote.unit.test_tunnel import wait_until
from unshackle.core import remote_channel, remote_lifetime, remote_service
from unshackle.core import process_exit, remote_channel, remote_lifetime, remote_service
from unshackle.core.api import handlers, routes, session_store
from unshackle.core.api.download_manager import busy_services
from unshackle.core.api.session_store import SessionEntry
@@ -860,7 +860,7 @@ def test_a_reopen_after_a_drain_ends_the_session_and_not_its_owner(
assert count(server, "DELETE", SESSION_ROUTE) == 1
assert len(exit_hooks) == 1 and not service.lifetime.ended
service.close()
assert sessions() == [] and exit_hooks == []
assert sessions() == [] and exit_hooks == [] and process_exit.ends == set()
def test_the_save_of_the_returned_cache_is_not_interrupted() -> None: