From b05c0d3a7ed8d5bf7738b98261bded8293329494 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 17:56:28 +0000 Subject: [PATCH] test(sdk): match run_cmd build error without the command name Co-Authored-By: mish@e2b.dev --- packages/js-sdk/tests/template/methods/runCmd.test.ts | 2 +- .../tests/async/template_async/methods/test_run_cmd.py | 2 +- .../python-sdk/tests/sync/template_sync/methods/test_run_cmd.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/js-sdk/tests/template/methods/runCmd.test.ts b/packages/js-sdk/tests/template/methods/runCmd.test.ts index 340a226a74..18f207e494 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 6f29096ab3..c0ef32d4a2 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 2114026891..89a0641b32 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) )