chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:47:58 +08:00
commit b16403ea71
789 changed files with 115226 additions and 0 deletions
@@ -0,0 +1,30 @@
import pytest
from datetime import datetime
from time import sleep
from e2b import AsyncSandbox
@pytest.mark.skip_debug()
async def test_shorten_timeout(async_sandbox: AsyncSandbox):
await async_sandbox.set_timeout(5)
sleep(6)
is_running = await async_sandbox.is_running()
assert is_running is False
@pytest.mark.skip_debug()
async def test_shorten_then_lengthen_timeout(async_sandbox: AsyncSandbox):
await async_sandbox.set_timeout(5)
sleep(1)
await async_sandbox.set_timeout(10)
sleep(6)
await async_sandbox.is_running()
@pytest.mark.skip_debug()
async def test_get_timeout(async_sandbox: AsyncSandbox):
info = await async_sandbox.get_info()
assert isinstance(info.end_at, datetime)