From c0183ca8b2aee12350b16fe0d8da9ac94d146086 Mon Sep 17 00:00:00 2001 From: saphid <4596216+saphid@users.noreply.github.com> Date: Tue, 29 Sep 2026 10:22:33 +1000 Subject: [PATCH] Tests: the private ControlPath is per headset too Co-Authored-By: Claude Opus 5.5 (1M context) --- tests/test_agent.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_agent.py b/tests/test_agent.py index 46ec1db..307d61a 100644 --- a/tests/test_agent.py +++ b/tests/test_agent.py @@ -213,8 +213,9 @@ class ManagedBackend(unittest.TestCase): with mock.patch.object(server.frame_host, 'MUX', True), \ mock.patch.object(server.frame_host.os, 'getuid', return_value=501, create=True), \ mock.patch.object(server.frame_host.os, 'getpid', return_value=123): - self.assertEqual(server.frame_host.control_path(), '/tmp/frame-ui-501-%C') - self.assertEqual(server.frame_host.control_path(private=True), '/tmp/frame-ui-501-123-%C') + # Per headset (its tag), and per process for a private server. + self.assertEqual(server.frame_host.control_path('a1b2', private=False), '/tmp/frame-ui-501-a1b2-%C') + self.assertEqual(server.frame_host.control_path('a1b2', private=True), '/tmp/frame-ui-501-123-a1b2-%C') class ComputerState(unittest.TestCase):