Skip to content

Commit 2cfbcbb

Browse files
committed
test: restore asyncio marker after rebase conflict resolution
During the #136 rebase onto latest main, conflict resolution in test_react_agent_gateway_injection.py dropped the @pytest.mark.asyncio decorator on test_react_agent_auto_compress_triggers_before_model_call.\n\nThis commit restores the decorator so pytest executes the async test correctly under the existing asyncio plugin configuration.\n\nVerification:\n- /Users/lang/workspace/github/Deterministic-Agent-Runtime-Engine/.venv/bin/pytest -q tests/unit/test_context_compression.py tests/unit/test_openai_model_adapter.py tests/unit/test_transport_adapters.py tests/unit/test_react_agent_gateway_injection.py\n- Result: 33 passed.
1 parent 09d6a31 commit 2cfbcbb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/unit/test_react_agent_gateway_injection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ async def test_react_agent_emits_terminal_message_for_max_round_exit() -> None:
353353
assert getattr(last_envelope, "event_type", None) == TransportEventType.MESSAGE.value
354354
assert "达到最大轮次" in str(getattr(last_envelope, "payload", {}).get("resp", {}).get("output", ""))
355355

356+
357+
@pytest.mark.asyncio
356358
async def test_react_agent_auto_compress_triggers_before_model_call() -> None:
357359
context = _CompressionRecordingContext(config=Config())
358360
context.budget.max_tokens = 100

0 commit comments

Comments
 (0)