mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-31 16:21:50 +03:00
test(runtime): isolate POSIX identity fixture
This commit is contained in:
@@ -503,6 +503,7 @@ def test_posix_process_identity_includes_start_time_and_accepts_legacy_state(
|
|||||||
monkeypatch,
|
monkeypatch,
|
||||||
):
|
):
|
||||||
runtime = GatewayRuntime(paths=_paths(tmp_path), platform_name="Linux")
|
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("nanobot.process_runtime.os.getpgid", lambda _pid: 42, raising=False)
|
||||||
monkeypatch.setattr(runtime, "_posix_process_started_at", lambda _pid: "987654")
|
monkeypatch.setattr(runtime, "_posix_process_started_at", lambda _pid: "987654")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user