Skip to content

The agent that grows with you

test(terminal): C20 approval_deny-rpc carries a non-strict xfail for the settle race

teknium14d3570d28499
diff --git a/tests/e2e/core/terminal/test_interactive_roundtrip.py b/tests/e2e/core/terminal/test_interactive_roundtrip.py
index 63d039aedb4..1915ea66305 100644
--- a/tests/e2e/core/terminal/test_interactive_roundtrip.py
+++ b/tests/e2e/core/terminal/test_interactive_roundtrip.py
@@ -208,7 +208,16 @@ CASES = [
]
[email protected](("kind", "how"), CASES, ids=[f"{k}-{h}" for k, h in CASES])
+# A race, so it cannot be strict: the RPC answer can end the approval wait before the gateway attaches the
+# hook that withdraws the sent request, which then stays in ``open_requests`` (red in about 1 in 4 loaded runs;
+# deterministic with the gap widened). Drop the mark when #120374 lands.
+_RACY = {("approval_deny", "rpc"): pytest.mark.xfail(
+ strict=False, raises=AssertionError,
+ reason="#120374: an approval answered by RPC before the settle hook attaches stays in open_requests")}
+
+
[email protected](("kind", "how"), [pytest.param(k, h, id=f"{k}-{h}", marks=_RACY.get((k, h), ()))
+ for k, h in CASES])
def test_interactive_roundtrip(backend: Backend, script: Script, kind: str, how: str) -> None:
tag = f"{kind}_{how}".lower()
try: