@@ -19,7 +19,7 @@ const rreaddirAsync = promisify(rreaddir)
1919
2020const describeLive = hasTransloaditCredentials ? describe : describe . skip
2121
22- describeLive ( 'assemblies' , ( ) => {
22+ describeLive ( 'assemblies' , { retry : 1 } , ( ) => {
2323 describe ( 'create' , ( ) => {
2424 const genericImg =
2525 'https://demos.transloadit.com/66/01604e7d0248109df8c7cc0f8daef8/snowflake.jpg'
@@ -478,41 +478,5 @@ describeLive('assemblies', () => {
478478 } ) ,
479479 300_000 ,
480480 )
481-
482- it (
483- 'should avoid opening filesystem streams during single-assembly collection' ,
484- testCase ( async ( client ) => {
485- // Create multiple input files for single-assembly mode
486- const fileCount = 5
487- const infiles = await Promise . all (
488- Array . from ( { length : fileCount } , ( _ , i ) => imgPromise ( `in${ i } .jpg` ) ) ,
489- )
490- const steps = await stepsPromise ( )
491- await fsp . mkdir ( 'out' )
492-
493- const output = new OutputCtl ( )
494- await assembliesCreate ( output , client , {
495- steps,
496- inputs : infiles ,
497- output : 'out' ,
498- singleAssembly : true , // All files in one assembly
499- } )
500-
501- // Verify files were processed
502- const outs = await fsp . readdir ( 'out' )
503- expect ( outs . length ) . to . be . greaterThan ( 0 )
504-
505- // Analyze debug output to verify filesystem inputs were collected as file paths.
506- // The current implementation only opens upload streams lazily for stdin inputs,
507- // so there should be no eager "STREAM CLOSED" churn during collection.
508- const debugOutput = output . get ( true ) as OutputEntry [ ]
509- const messages = debugOutput . map ( ( e ) => String ( e . msg ) )
510-
511- const streamClosedMessages = messages . filter ( ( m ) => m . startsWith ( 'STREAM CLOSED' ) )
512- expect ( streamClosedMessages ) . to . have . lengthOf ( 0 )
513- expect ( messages ) . to . include ( `Creating single assembly with ${ fileCount } files` )
514- } ) ,
515- 300_000 ,
516- )
517481 } )
518482} )
0 commit comments