Skip to content

Commit 1ca49e4

Browse files
committed
test(control-mode): Adjust attach_to expectation to ignore control-only attachment
1 parent d4a9eba commit 1ca49e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_control_mode_regressions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,10 @@ def test_attach_to_existing_session(case: AttachFixture) -> None:
598598
assert len(sessions) == 1
599599
assert sessions[0].session_name == case.attach_to
600600

601+
# Only the control client is attached; attached_sessions should be empty
602+
# because we filter control clients from "attached" semantics.
601603
attached = server.attached_sessions
602-
assert len(attached) == 1
603-
assert attached[0].session_name == case.attach_to
604+
assert attached == []
604605
finally:
605606
with contextlib.suppress(Exception):
606607
bootstrap.kill()

0 commit comments

Comments
 (0)