test: pin overlay policy off in embedded-daemon socket/ack contract test
The embedded spawn now consults the overlay policy (capability probe via subprocess.run) when _cua_no_overlay() is true — which it is on headless CI since the Linux X11 default flip. The fixed two-entry run side_effect in this test didn't budget for the probe call; pin the policy off since this test pins the socket/ack contract, not overlay behavior.
This commit is contained in:
@@ -178,6 +178,12 @@ def test_unrestricted_embedded_daemon_uses_private_socket_and_two_part_ack():
|
||||
cua_backend,
|
||||
"_resolve_mcp_invocation",
|
||||
return_value=("/opt/cua-driver", ["mcp"]),
|
||||
), patch.object(
|
||||
# This test pins the socket/ack contract, not overlay policy. Pin the
|
||||
# policy off so the environment-dependent auto-detect (headless CI vs
|
||||
# Wayland dev box) can't add a `--help` capability-probe subprocess.run
|
||||
# call that the fixed two-entry side_effect below doesn't budget for.
|
||||
cua_backend, "_cua_no_overlay", return_value=False,
|
||||
), patch.object(cua_backend.subprocess, "Popen", return_value=process) as popen, patch.object(
|
||||
cua_backend.subprocess, "run", side_effect=[status, stopped]
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user