File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -397,26 +397,6 @@ describe('CommandExecutor', () => {
397397 }
398398 } ) ;
399399
400- it ( 'should handle process termination by signal' , async ( ) => {
401- // This test simulates a process being killed by a signal
402- try {
403- // Start a long-running process and kill it
404- const promise = CommandExecutor . execute ( 'sh' , [ '-c' , 'sleep 10' ] ) ;
405-
406- // Give it a moment to start
407- await new Promise ( resolve => setTimeout ( resolve , 100 ) ) ;
408-
409- // Kill all sleep processes (this is a bit hacky but works for testing)
410- await CommandExecutor . execute ( 'sh' , [ '-c' , 'pkill -9 sleep || true' ] ) ;
411-
412- await promise ;
413- expect . fail ( 'Should have thrown an error' ) ;
414- } catch ( error ) {
415- expect ( error ) . to . be . instanceOf ( PDFProcessingError ) ;
416- // The error should mention the signal or non-zero exit
417- expect ( error . message ) . to . match ( / P r o c e s s e x i t e d w i t h c o d e | s i g n a l / ) ;
418- }
419- } ) ;
420400
421401 it ( 'should capture stdout correctly' , async ( ) => {
422402 const result = await CommandExecutor . execute ( 'sh' , [ '-c' , 'echo "line1"; echo "line2"' ] ) ;
You can’t perform that action at this time.
0 commit comments