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) )