Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Revert timeout changes in tests (#973)

Jonas Scholzcc595f3fc892
diff --git a/packages/js-sdk/tests/sandbox/timeout.test.ts b/packages/js-sdk/tests/sandbox/timeout.test.ts
index ff385b796..d86e55110 100644
--- a/packages/js-sdk/tests/sandbox/timeout.test.ts
+++ b/packages/js-sdk/tests/sandbox/timeout.test.ts
@@ -7,7 +7,7 @@ sandboxTest.skipIf(isDebug)('shorten timeout', async ({ sandbox }) => {
await wait(6000)
- expect(await sandbox.isRunning({ requestTimeoutMs: 5000 })).toBeFalsy()
+ expect(await sandbox.isRunning()).toBeFalsy()
})
sandboxTest.skipIf(isDebug)(
@@ -21,7 +21,7 @@ sandboxTest.skipIf(isDebug)(
await wait(6000)
- expect(await sandbox.isRunning({ requestTimeoutMs: 5000 })).toBeTruthy()
+ expect(await sandbox.isRunning()).toBeTruthy()
}
)
diff --git a/packages/python-sdk/tests/async/sandbox_async/test_timeout.py b/packages/python-sdk/tests/async/sandbox_async/test_timeout.py
index 0e487ec6c..7474b084f 100644
--- a/packages/python-sdk/tests/async/sandbox_async/test_timeout.py
+++ b/packages/python-sdk/tests/async/sandbox_async/test_timeout.py
@@ -11,7 +11,7 @@ async def test_shorten_timeout(async_sandbox: AsyncSandbox):
await async_sandbox.set_timeout(5)
sleep(6)
- is_running = await async_sandbox.is_running(request_timeout=5)
+ is_running = await async_sandbox.is_running()
assert is_running is False
@@ -21,7 +21,7 @@ async def test_shorten_then_lengthen_timeout(async_sandbox: AsyncSandbox):
sleep(1)
await async_sandbox.set_timeout(10)
sleep(6)
- await async_sandbox.is_running(request_timeout=5)
+ await async_sandbox.is_running()
@pytest.mark.skip_debug()
diff --git a/packages/python-sdk/tests/sync/sandbox_sync/test_timeout.py b/packages/python-sdk/tests/sync/sandbox_sync/test_timeout.py
index 42ef702e1..f175e7b9e 100644
--- a/packages/python-sdk/tests/sync/sandbox_sync/test_timeout.py
+++ b/packages/python-sdk/tests/sync/sandbox_sync/test_timeout.py
@@ -19,7 +19,7 @@ def test_shorten_then_lengthen_timeout(sandbox):
sleep(1)
sandbox.set_timeout(10)
sleep(6)
- sandbox.is_running(request_timeout=5)
+ sandbox.is_running()
@pytest.mark.skip_debug()