Skip to content

Commit 3ec44d7

Browse files
committed
test: update e2e tests to use this
1 parent d5194ee commit 3ec44d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/idempotency/tests/e2e/idempotentDecorator.test.FunctionCode.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ const dynamoDBPersistenceLayerCustomized = new DynamoDBPersistenceLayer({
2525
const config = new IdempotencyConfig({});
2626

2727
class DefaultLambda implements LambdaInterface {
28+
private readonly message = 'Got test event:';
29+
2830
@idempotent({ persistenceStore: dynamoDBPersistenceLayer })
2931
public async handler(
3032
_event: Record<string, unknown>,
3133
_context: Context
3234
): Promise<void> {
33-
logger.info(`Got test event: ${JSON.stringify(_event)}`);
35+
logger.info(`${this.message} ${JSON.stringify(_event)}`);
3436
// sleep to enforce error with parallel execution
3537
await new Promise((resolve) => setTimeout(resolve, 1000));
3638

0 commit comments

Comments
 (0)