Skip to content

armgit / E2B

Public Imported from GitHub
0

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

test(sdk): match run_cmd build error without the command name (#2014)

devin-ai-integration[bot]5ad398f0965b
diff --git a/packages/js-sdk/tests/template/methods/runCmd.test.ts b/packages/js-sdk/tests/template/methods/runCmd.test.ts
index 340a226a7..18f207e49 100644
--- a/packages/js-sdk/tests/template/methods/runCmd.test.ts
+++ b/packages/js-sdk/tests/template/methods/runCmd.test.ts
@@ -32,7 +32,7 @@ buildTemplateTest(
.runCmd('whoami', { user: 'root123' })
await expect(buildTemplate(template)).rejects.toThrow(
- "failed to run command 'whoami': command failed: unauthenticated: invalid username: 'root123'"
+ "failed to run command: command failed: unauthenticated: invalid username: 'root123'"
)
}
)
diff --git a/packages/python-sdk/tests/async/template_async/methods/test_run_cmd.py b/packages/python-sdk/tests/async/template_async/methods/test_run_cmd.py
index 6f29096ab..c0ef32d4a 100644
--- a/packages/python-sdk/tests/async/template_async/methods/test_run_cmd.py
+++ b/packages/python-sdk/tests/async/template_async/methods/test_run_cmd.py
@@ -35,6 +35,6 @@ async def test_run_command_as_user_that_does_not_exist(async_build):
await async_build(template)
assert (
- "failed to run command 'whoami': command failed: unauthenticated: invalid username: 'root123'"
+ "failed to run command: command failed: unauthenticated: invalid username: 'root123'"
in str(exc_info.value)
)
diff --git a/packages/python-sdk/tests/sync/template_sync/methods/test_run_cmd.py b/packages/python-sdk/tests/sync/template_sync/methods/test_run_cmd.py
index 211402689..89a0641b3 100644
--- a/packages/python-sdk/tests/sync/template_sync/methods/test_run_cmd.py
+++ b/packages/python-sdk/tests/sync/template_sync/methods/test_run_cmd.py
@@ -35,6 +35,6 @@ def test_run_command_as_user_that_does_not_exist(build):
build(template)
assert (
- "failed to run command 'whoami': command failed: unauthenticated: invalid username: 'root123'"
+ "failed to run command: command failed: unauthenticated: invalid username: 'root123'"
in str(exc_info.value)
)