fixed async call issue

This commit is contained in:
2026-02-21 14:46:46 -07:00
parent ef2ac2f030
commit 3085f82179
+2 -1
View File
@@ -1,3 +1,4 @@
import asyncio
from unittest.mock import AsyncMock, MagicMock, patch from unittest.mock import AsyncMock, MagicMock, patch
import pytest import pytest
@@ -137,7 +138,7 @@ async def test_real_sandbox_starts():
assert sb.container is not None assert sb.container is not None
# Verify container is actually running # Verify container is actually running
result = await sb.run("echo 'sandbox started'") result = await asyncio.to_thread(sb.run, "echo 'sandbox started'")
assert "sandbox started" in result assert "sandbox started" in result