Skip to content

armgit / E2B

Public Imported from GitHub
0

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

fix: update kill test to use valid sandbox ID format (#1169)

Jakub Dobry51582e831585
diff --git a/packages/js-sdk/tests/api/kill.test.ts b/packages/js-sdk/tests/api/kill.test.ts
index 1d57baa4e..04cd45f83 100644
--- a/packages/js-sdk/tests/api/kill.test.ts
+++ b/packages/js-sdk/tests/api/kill.test.ts
@@ -17,5 +17,5 @@ sandboxTest.skipIf(isDebug)(
)
sandboxTest.skipIf(isDebug)('kill non-existing sandbox', async () => {
- await expect(Sandbox.kill('non-existing-sandbox')).resolves.toBe(false)
+ await expect(Sandbox.kill('nonexistingsandbox')).resolves.toBe(false)
})
diff --git a/packages/python-sdk/tests/async/api_async/test_sbx_kill.py b/packages/python-sdk/tests/async/api_async/test_sbx_kill.py
index ace0deff3..85de035d2 100644
--- a/packages/python-sdk/tests/async/api_async/test_sbx_kill.py
+++ b/packages/python-sdk/tests/async/api_async/test_sbx_kill.py
@@ -18,4 +18,4 @@ async def test_kill_existing_sandbox(async_sandbox: AsyncSandbox, sandbox_test_i
@pytest.mark.skip_debug()
async def test_kill_non_existing_sandbox():
- assert not await AsyncSandbox.kill("non-existing-sandbox")
+ assert not await AsyncSandbox.kill("nonexistingsandbox")
diff --git a/packages/python-sdk/tests/sync/api_sync/test_sbx_kill.py b/packages/python-sdk/tests/sync/api_sync/test_sbx_kill.py
index dfc587646..56275ca1b 100644
--- a/packages/python-sdk/tests/sync/api_sync/test_sbx_kill.py
+++ b/packages/python-sdk/tests/sync/api_sync/test_sbx_kill.py
@@ -18,4 +18,4 @@ def test_kill_existing_sandbox(sandbox: Sandbox, sandbox_test_id: str):
@pytest.mark.skip_debug()
def test_kill_non_existing_sandbox():
- assert not Sandbox.kill("non-existing-sandbox")
+ assert not Sandbox.kill("nonexistingsandbox")