@@ -24,10 +24,14 @@ const uploadFiles = async () => {
24
24
client . fPutObject ( 'files' , 'first.txt' , path ) ,
25
25
client . fPutObject ( 'documents' , 'second.txt' , path ) ,
26
26
client . fPutObject ( 'pictures' , 'second.txt' , path ) ,
27
- client . fPutObject ( 'files' , 'second.txt' , path )
27
+ client . fPutObject ( 'files' , 'second.txt' , path ) ,
28
+ client . fPutObject ( 'others' , 'correct/test.txt' , path ) ,
29
+ client . fPutObject ( 'others' , 'wrong/test.csv' , path ) ,
30
+ client . fPutObject ( 'others' , 'correct/test.csv' , path ) ,
31
+ client . fPutObject ( 'others' , 'wrong/test.txt' , path )
28
32
] ) ;
29
33
} ;
30
- const EXPECED_LAMBDA_CALL = 8 ; // pictures files are consumed twice, by myPromiseHandler and myPythonHandler
34
+ const EXPECTED_LAMBDA_CALL = 9 ; // pictures files are consumed twice, by myPromiseHandler and myPythonHandler
31
35
32
36
const serverless = spawn ( 'serverless' , [ '--config' , 'serverless.s3.yml' , 'offline' , 'start' ] , {
33
37
stdio : [ 'pipe' , 'pipe' , 'pipe' ] ,
51
55
/ o f f l i n e : \( λ : .* \) R e q u e s t I d : .* D u r a t i o n : .* m s { 2 } B i l l e d D u r a t i o n : .* m s / g
52
56
) || [ ]
53
57
) . length ;
54
- if ( this . count === EXPECED_LAMBDA_CALL ) serverless . kill ( ) ;
58
+ if ( this . count === EXPECTED_LAMBDA_CALL ) serverless . kill ( ) ;
55
59
cb ( ) ;
56
60
}
57
61
} )
0 commit comments