From b19e5786e2200dbc38516817739ee8be8cd5f800 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Mon, 14 Sep 2026 20:03:01 -0700 Subject: [PATCH] test(update-windows): spawn stubs accept the per-profile home argument _spawn_detached now forwards home= to _build_gateway_argv so the post-update cold-start can launch another profile's gateway; the two windows_only spawn tests stubbed _build_gateway_argv with a zero-arg lambda and raised TypeError on the Windows runner. --- tests/hermes_cli/test_gateway_windows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hermes_cli/test_gateway_windows.py b/tests/hermes_cli/test_gateway_windows.py index 9580964a93..cd94e9d0d0 100644 --- a/tests/hermes_cli/test_gateway_windows.py +++ b/tests/hermes_cli/test_gateway_windows.py @@ -93,7 +93,7 @@ def test_spawn_detached_marks_primary_breakaway_success(monkeypatch, tmp_path, c monkeypatch.setattr( gateway_windows, "_build_gateway_argv", - lambda: (argv, cwd, {"HERMES_GATEWAY_DETACHED": "1"}), + lambda home=None: (argv, cwd, {"HERMES_GATEWAY_DETACHED": "1"}), ) monkeypatch.setattr("hermes_cli.config.get_hermes_home", lambda: tmp_path) monkeypatch.setattr(gateway_windows.subprocess, "Popen", fake_popen) @@ -131,7 +131,7 @@ def test_spawn_detached_warns_and_marks_no_breakaway_fallback( monkeypatch.setattr( gateway_windows, "_build_gateway_argv", - lambda: ( + lambda home=None: ( argv, cwd, {"HERMES_GATEWAY_DETACHED": "1", "SECRET_SENTINEL": "do-not-log"},