From 55f04233365a9177ea7a925a35282bd6b99a9f68 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Mon, 17 Aug 2026 01:36:25 +0800 Subject: [PATCH] test(cli): tolerate wrapped launcher output --- tests/cli/test_commands.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/cli/test_commands.py b/tests/cli/test_commands.py index b638b2440..aaf1f4d5e 100644 --- a/tests/cli/test_commands.py +++ b/tests/cli/test_commands.py @@ -2584,9 +2584,10 @@ def test_attach_to_background_gateway_detaches_on_ctrl_c(capsys) -> None: assert stopped is False output = capsys.readouterr().out - assert "Closing the browser does not stop channels or automations" in output - assert "gateway stops only when the last local client exits" in output - assert "WebUI launcher detached" in output + rendered = " ".join(output.split()) + assert "Closing the browser does not stop channels or automations" in rendered + assert "gateway stops only when the last local client exits" in rendered + assert "WebUI launcher detached" in rendered def test_attach_to_background_gateway_checks_owned_sidecar() -> None: