Skip to content

The agent that grows with you

test(gateway): run the scheduled voice ack instead of reading its frame

Tekniume5f0ab957119
diff --git a/tests/gateway/test_prompt_tail_freeze.py b/tests/gateway/test_prompt_tail_freeze.py
index 8701261e2fe..9b0dbd6f433 100644
--- a/tests/gateway/test_prompt_tail_freeze.py
+++ b/tests/gateway/test_prompt_tail_freeze.py
@@ -18,6 +18,7 @@ is guarded by the parity test below.
from __future__ import annotations
+import asyncio
from types import SimpleNamespace
from unittest.mock import MagicMock
@@ -355,8 +356,9 @@ class TestVoiceAckFollowsTheAnsweringBot:
)
GatewayTurnProgressMixin.voice_ack_callback(progress, "call1", "web_search", {})
assert len(scheduled) == 1
- assert scheduled[0].cr_frame.f_locals["self"] is secondary
- scheduled[0].close()
+ asyncio.run(scheduled[0])
+ assert secondary.acks == [77]
+ assert _primary.acks == []
# ---------------------------------------------------------------------------