@@ -88,7 +88,7 @@ describe('Tracer integration tests', () => {
88
88
await lambdaClient . invoke ( {
89
89
FunctionName : functionName ,
90
90
Payload : JSON . stringify ( {
91
- throw : true ? i === invocations - 1 : false , // only last invocation should throw
91
+ throw : i === invocations ? true : false , // only last invocation should throw
92
92
} ) ,
93
93
} ) . promise ( ) ;
94
94
}
@@ -97,7 +97,7 @@ describe('Tracer integration tests', () => {
97
97
// sleep to allow for traces to be collected
98
98
await new Promise ( ( resolve ) => setTimeout ( resolve , 120000 ) ) ;
99
99
100
- } , 900000 ) ;
100
+ } , 360000 ) ; // 6 minutes
101
101
102
102
afterAll ( async ( ) => {
103
103
@@ -114,7 +114,7 @@ describe('Tracer integration tests', () => {
114
114
} ) ;
115
115
}
116
116
117
- } , 900000 ) ;
117
+ } , 180000 ) ; // 3 minutes
118
118
119
119
it ( 'Verifies that a when Tracer is used to manually instrument a function all custom traces are generated with correct annotations and metadata' , async ( ) => {
120
120
@@ -184,7 +184,7 @@ describe('Tracer integration tests', () => {
184
184
}
185
185
}
186
186
187
- } , 900000 ) ;
187
+ } , 120000 ) ; // 2 minutes
188
188
189
189
it ( 'Verifies that a when Tracer is used as middleware all custom traces are generated with correct annotations and metadata' , async ( ) => {
190
190
@@ -243,7 +243,7 @@ describe('Tracer integration tests', () => {
243
243
}
244
244
}
245
245
246
- } , 900000 ) ;
246
+ } , 120000 ) ; // 2 minutes
247
247
248
248
it ( 'Verifies that a when Tracer is used as decorator all custom traces are generated with correct annotations and metadata' , async ( ) => {
249
249
@@ -323,7 +323,7 @@ describe('Tracer integration tests', () => {
323
323
}
324
324
}
325
325
326
- } , 900000 ) ;
326
+ } , 120000 ) ; // 2 minutes
327
327
328
328
it ( 'Verifies that a when tracing is disabled no custom traces are generated' , async ( ) => {
329
329
@@ -347,6 +347,6 @@ describe('Tracer integration tests', () => {
347
347
}
348
348
}
349
349
350
- } , 900000 ) ;
350
+ } , 120000 ) ; // 2 minutes
351
351
352
352
} ) ;
0 commit comments