From 78802c4c4e41496854f0244318c8cfd9730d84ff Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Mon, 17 Aug 2026 04:00:20 +0800 Subject: [PATCH] test(runtime): isolate POSIX identity fixture --- tests/gateway/test_runtime.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gateway/test_runtime.py b/tests/gateway/test_runtime.py index d1b6e642d..54c011b6f 100644 --- a/tests/gateway/test_runtime.py +++ b/tests/gateway/test_runtime.py @@ -503,6 +503,7 @@ def test_posix_process_identity_includes_start_time_and_accepts_legacy_state( monkeypatch, ): runtime = GatewayRuntime(paths=_paths(tmp_path), platform_name="Linux") + monkeypatch.setattr("nanobot.process_runtime._platform_name", lambda: "Linux") monkeypatch.setattr("nanobot.process_runtime.os.getpgid", lambda _pid: 42, raising=False) monkeypatch.setattr(runtime, "_posix_process_started_at", lambda _pid: "987654")