@@ -65,7 +65,7 @@ describe('Logger E2E tests, basic functionalities middy usage', () => {
65
65
} ) ;
66
66
67
67
describe ( 'Log level filtering' , ( ) => {
68
- it ( 'should filter log based on POWERTOOLS_LOG_LEVEL (INFO) environment variable in Lambda' , async ( ) => {
68
+ it ( 'should filter log based on POWERTOOLS_LOG_LEVEL (INFO) environment variable in Lambda' , ( ) => {
69
69
for ( let i = 0 ; i < invocationCount ; i ++ ) {
70
70
// Get log messages of the invocation and filter by level
71
71
const debugLogs = invocationLogs [ i ] . getFunctionLogs ( 'DEBUG' ) ;
@@ -76,7 +76,7 @@ describe('Logger E2E tests, basic functionalities middy usage', () => {
76
76
} ) ;
77
77
78
78
describe ( 'Context data' , ( ) => {
79
- it ( 'should inject context info in each log' , async ( ) => {
79
+ it ( 'should inject context info in each log' , ( ) => {
80
80
for ( let i = 0 ; i < invocationCount ; i ++ ) {
81
81
// Get log messages of the invocation
82
82
const logMessages = invocationLogs [ i ] . getFunctionLogs ( ) ;
@@ -92,7 +92,7 @@ describe('Logger E2E tests, basic functionalities middy usage', () => {
92
92
}
93
93
} ) ;
94
94
95
- it ( 'should include coldStart equal to TRUE only on the first invocation, FALSE otherwise' , async ( ) => {
95
+ it ( 'should include coldStart equal to TRUE only on the first invocation, FALSE otherwise' , ( ) => {
96
96
for ( let i = 0 ; i < invocationCount ; i ++ ) {
97
97
// Get log messages of the invocation
98
98
const logMessages = invocationLogs [ i ] . getFunctionLogs ( ) ;
@@ -109,7 +109,7 @@ describe('Logger E2E tests, basic functionalities middy usage', () => {
109
109
} ) ;
110
110
} ) ;
111
111
112
- it ( 'logs the event for every invocation, only once, and without keys from previous invocations' , async ( ) => {
112
+ it ( 'logs the event for every invocation, only once, and without keys from previous invocations' , ( ) => {
113
113
const { RUNTIME_ADDED_KEY : runtimeAddedKey } = commonEnvironmentVars ;
114
114
115
115
for ( let i = 0 ; i < invocationCount ; i ++ ) {
@@ -132,7 +132,7 @@ describe('Logger E2E tests, basic functionalities middy usage', () => {
132
132
} ) ;
133
133
134
134
describe ( 'Persistent additional log keys and values' , ( ) => {
135
- it ( 'should contain persistent value in every log' , async ( ) => {
135
+ it ( 'should contain persistent value in every log' , ( ) => {
136
136
const {
137
137
PERSISTENT_KEY : persistentKey ,
138
138
PERSISTENT_VALUE : persistentValue ,
@@ -151,7 +151,7 @@ describe('Logger E2E tests, basic functionalities middy usage', () => {
151
151
}
152
152
} ) ;
153
153
154
- it ( 'should not contain persistent keys that were removed on runtime' , async ( ) => {
154
+ it ( 'should not contain persistent keys that were removed on runtime' , ( ) => {
155
155
const { REMOVABLE_KEY : removableKey , REMOVABLE_VALUE : removableValue } =
156
156
commonEnvironmentVars ;
157
157
@@ -176,7 +176,7 @@ describe('Logger E2E tests, basic functionalities middy usage', () => {
176
176
} ) ;
177
177
178
178
describe ( 'One-time additional log keys and values' , ( ) => {
179
- it ( 'should log additional keys and value only once' , async ( ) => {
179
+ it ( 'should log additional keys and value only once' , ( ) => {
180
180
const {
181
181
SINGLE_LOG_ITEM_KEY : singleLogItemKey ,
182
182
SINGLE_LOG_ITEM_VALUE : singleLogItemValue ,
@@ -200,7 +200,7 @@ describe('Logger E2E tests, basic functionalities middy usage', () => {
200
200
} ) ;
201
201
202
202
describe ( 'Error logging' , ( ) => {
203
- it ( 'should log error only once' , async ( ) => {
203
+ it ( 'should log error only once' , ( ) => {
204
204
const { ERROR_MSG : errorMsg } = commonEnvironmentVars ;
205
205
206
206
for ( let i = 0 ; i < invocationCount ; i ++ ) {
@@ -226,7 +226,7 @@ describe('Logger E2E tests, basic functionalities middy usage', () => {
226
226
} ) ;
227
227
228
228
describe ( 'Arbitrary object logging' , ( ) => {
229
- it ( 'should log additional arbitrary object only once' , async ( ) => {
229
+ it ( 'should log additional arbitrary object only once' , ( ) => {
230
230
const {
231
231
ARBITRARY_OBJECT_KEY : objectKey ,
232
232
ARBITRARY_OBJECT_DATA : objectData ,
@@ -263,7 +263,7 @@ describe('Logger E2E tests, basic functionalities middy usage', () => {
263
263
} ) ;
264
264
265
265
describe ( 'X-Ray Trace ID injection' , ( ) => {
266
- it ( 'should inject & parse the X-Ray Trace ID of the current invocation into every log' , async ( ) => {
266
+ it ( 'should inject & parse the X-Ray Trace ID of the current invocation into every log' , ( ) => {
267
267
for ( let i = 0 ; i < invocationCount ; i ++ ) {
268
268
// Get log messages of the invocation
269
269
const logMessages = invocationLogs [ i ] . getFunctionLogs ( ) ;
0 commit comments