File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import {
3131 cleanupSandbox
3232} from './helpers/test-fixtures' ;
3333import type { CodeContext , ExecutionResult } from '@repo/shared' ;
34- import type { ErrorResponse as SDKErrorResponse } from '@repo/shared/errors' ;
3534import type { ErrorResponse } from './test-worker/types' ;
3635
3736describe ( '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 ( / - p y t h o n / ) ;
913+ expect ( errorData . error ) . toContain ( 'Python interpreter not available' ) ;
914+ expect ( errorData . error ) . toMatch ( / - p y t h o n / ) ;
916915 } , 120000 ) ;
917916} ) ;
You can’t perform that action at this time.
0 commit comments