Skip to content

Commit 5d5d43d

Browse files
committed
fix: cold start only on on-demand invocation
1 parent 090de1d commit 5d5d43d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

powertools-common/src/test/java/software/amazon/lambda/powertools/common/internal/LambdaHandlerProcessorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ void extractContext_notKnownHandler() {
216216
}
217217

218218
@Test
219+
@SetEnvironmentVariable(key = LambdaConstants.AWS_LAMBDA_INITIALIZATION_TYPE, value = LambdaConstants.ON_DEMAND_INVOCATION_TYPE)
219220
void isColdStart() {
220221
boolean isColdStart = LambdaHandlerProcessor.isColdStart();
221222

0 commit comments

Comments
 (0)