File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 81
81
"url" : " https://github.com/awslabs/aws-lambda-powertools-typescript/issues"
82
82
},
83
83
"dependencies" : {
84
- "@aws-lambda-powertools/commons" : " ^0.2 .0" ,
84
+ "@aws-lambda-powertools/commons" : " ^0.6 .0" ,
85
85
"@types/aws-lambda" : " ^8.10.72" ,
86
86
"lodash.clonedeep" : " ^4.5.0" ,
87
87
"lodash.merge" : " ^4.6.2" ,
Original file line number Diff line number Diff line change @@ -98,18 +98,16 @@ describe(`logger E2E tests basic functionalities (middy) for runtime: ${runtime}
98
98
}
99
99
} , TEST_CASE_TIMEOUT ) ;
100
100
101
- it ( 'should include cold metrics only on the first invocation' , async ( ) => {
101
+ it ( 'should include cold start equal to TRUE only on the first invocation' , async ( ) => {
102
102
const coldStartLogMessages = invocationLogs [ 0 ] . getFunctionLogs ( LEVEL . INFO ) ;
103
103
for ( const message of coldStartLogMessages ) {
104
104
expect ( message ) . toContain ( `"cold_start":true` ) ;
105
105
}
106
106
107
- // TODO: There is a bug that the 'cold_start' field leaks to all invocation. (#518)
108
- // Link to tracked issue: https://github.com/awslabs/aws-lambda-powertools-typescript/issues/518
109
- // const normalLogMessages = invocationLogs[1].getFunctionLogs(LEVEL.INFO);
110
- // for(const message of normalLogMessages) {
111
- // expect(message).not.toContain(`"cold_start":true`);
112
- // }
107
+ const normalLogMessages = invocationLogs [ 1 ] . getFunctionLogs ( LEVEL . INFO ) ;
108
+ for ( const message of normalLogMessages ) {
109
+ expect ( message ) . not . toContain ( `"cold_start":true` ) ;
110
+ }
113
111
} , TEST_CASE_TIMEOUT ) ;
114
112
} ) ;
115
113
You can’t perform that action at this time.
0 commit comments