test(tui_gateway): fix undefined _ThreadUnsafeStdout in detached-ws test

The new test referenced _ThreadUnsafeStdout, which is not defined in the
test file or anywhere in tests/. Use the existing _ChunkyStdout helper
(line 106) which exposes the .parts list the assertion already checks.

Fixes the test (2) CI shard failure on this PR.
This commit is contained in:
teknium1 2026-06-08 07:44:38 -07:00
parent 65b2f95a6c
commit 21be7caf15

View file

@ -153,7 +153,7 @@ def test_write_json_returns_false_on_broken_pipe(monkeypatch):
def test_write_json_drops_detached_ws_frames(monkeypatch):
out = _ThreadUnsafeStdout()
out = _ChunkyStdout()
monkeypatch.setattr(server, "_real_stdout", out)
server._sessions["detached-sid"] = {"transport": server._detached_ws_transport}
try: