File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ module.exports.generatePayloads = (num, payloadInput) => {
250250
251251 // iterate over weighted payloads and fill the array based on relative weight
252252 let done = 0 ;
253- for ( let i = 0 ; i < payloadInput . length ; i ++ ) {
253+ for ( let i = 0 ; i < payloadInput . length ; i ++ ) {
254254 const p = payloadInput [ i ] ;
255255 var howMany = Math . floor ( p . weight * num / total ) ;
256256 if ( howMany < 1 ) {
Original file line number Diff line number Diff line change @@ -331,8 +331,8 @@ describe('Lambda Utils', () => {
331331 } ) ;
332332
333333 it ( 'should invoke the processing function without an alias' , async ( ) => {
334- const ARN = " arn:aws:lambda:eu-west-1:XXX:function:name" ;
335- const data = await utils . invokeLambdaProcessor ( ARN , "{}" ) ;
334+ const ARN = ' arn:aws:lambda:eu-west-1:XXX:function:name' ;
335+ const data = await utils . invokeLambdaProcessor ( ARN , '{}' ) ;
336336 expect ( data ) . to . be ( undefined ) ; // mocked API call
337337 } ) ;
338338
@@ -620,13 +620,10 @@ describe('Lambda Utils', () => {
620620 counters [ JSON . parse ( payload ) . test ] += 1 ;
621621 } ) ;
622622
623- for ( let i = 1 ; i < 26 ; i ++ ) {
624- if ( counters [ i ] !== 1 ) {
625- expect ( ) . fail ( `i=${ i } , counter=${ counters [ i ] } ` )
626- }
627- // expect(counters[i]).to.be(1);
623+ for ( let i = 1 ; i < 26 ; i ++ ) {
624+ expect ( counters [ i ] ) . to . be ( 1 ) ;
628625 }
629- expect ( counters [ 26 ] ) . to . be ( 1 + 4 ) ;
626+ expect ( counters [ 26 ] ) . to . be ( 1 + 4 ) ;
630627 } ) ;
631628
632629 } ) ;
You can’t perform that action at this time.
0 commit comments