Skip to content

The agent that grows with you

test(gateway): the Windows pipe fallback row is fail-open unknown, not stale; map @erosika

teknium139f28a20bbcc
diff --git a/contributors/emails/[email protected] b/contributors/emails/[email protected]
new file mode 100644
index 00000000000..7da0054f29e
--- /dev/null
+++ b/contributors/emails/[email protected]
@@ -0,0 +1 @@
+erosika
diff --git a/tests/gateway/test_control_socket_windows_live.py b/tests/gateway/test_control_socket_windows_live.py
index d7e0fc8cef4..6c2f1504f17 100644
--- a/tests/gateway/test_control_socket_windows_live.py
+++ b/tests/gateway/test_control_socket_windows_live.py
@@ -128,7 +128,9 @@ def test_pipe_gone_after_kill_falls_back(live_server, monkeypatch):
assert identify_gateway(home, timeout=2.0) is None
- # Consumer falls back to the state file (live pid = this test process)
+ # Consumer falls back to the state file. Its live pid is THIS test process, whose command
+ # line is not a gateway's, so the record's self-reported SHA must not classify it (#109680):
+ # a fail-open visibility row with state ``unknown``, never ``stale``/``current``.
import hermes_cli.update_receipt as ur
(home / "gateway_state.json").write_text(
@@ -148,4 +150,6 @@ def test_pipe_gone_after_kill_falls_back(live_server, monkeypatch):
fleet = ur.collect_fleet_versions()
assert len(fleet) == 1, fleet
assert "source" not in fleet[0]
- assert fleet[0]["state"] == "stale"
+ assert fleet[0]["pid"] == os.getpid()
+ assert fleet[0]["state"] == "unknown"
+ assert fleet[0]["code_sha"] is None