Skip to content

Commit 4b1d4ac

Browse files
committed
Fix Python unavailable test to expect 500 status
1 parent 78c8a37 commit 4b1d4ac

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/e2e/code-interpreter-workflow.test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import {
3131
cleanupSandbox
3232
} from './helpers/test-fixtures';
3333
import type { CodeContext, ExecutionResult } from '@repo/shared';
34-
import type { ErrorResponse as SDKErrorResponse } from '@repo/shared/errors';
3534
import type { ErrorResponse } from './test-worker/types';
3635

3736
describe('Code Interpreter Workflow (E2E)', () => {
@@ -906,12 +905,12 @@ console.log('Sum:', sum);
906905
body: JSON.stringify({ language: 'python' })
907906
});
908907

909-
// 501 Not Implemented - Python feature not available in this image variant
910-
expect(response.status).toBe(501);
911-
const errorData = (await response.json()) as SDKErrorResponse;
908+
// Should return error (test worker returns 500 for all errors)
909+
expect(response.status).toBe(500);
910+
const errorData = (await response.json()) as ErrorResponse;
912911

913912
// Error should guide users to the correct image variant
914-
expect(errorData.message).toContain('Python interpreter not available');
915-
expect(errorData.message).toMatch(/-python/);
913+
expect(errorData.error).toContain('Python interpreter not available');
914+
expect(errorData.error).toMatch(/-python/);
916915
}, 120000);
917916
});

0 commit comments

Comments
 (0)