mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-01 21:45:10 +00:00
fix(remote): end the remote session when a signal or a closed console stops the client
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user