Skip to content

Commit

Permalink
sqs props test
Browse files Browse the repository at this point in the history
  • Loading branch information
malachi-constant committed Apr 4, 2023
1 parent 50f05d2 commit 1adeb18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/stages/sqs-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class SqsToLambdaStage extends DataStage {
}
: undefined,
fifo: props.sqsQueueProps?.fifo ? props.sqsQueueProps?.fifo : undefined,
...props.sqsQueueProps
...props.sqsQueueProps,
});
}

Expand Down
2 changes: 2 additions & 0 deletions test/sqs-lambda-stage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ test("SQSToLambdaStage additional properties", () => {
maxReceiveCount: 2,
dlqEnabled: true,
sqsQueueProps: {
queueName: "dummy-queue.fifo",
fifo: true,
visibilityTimeout: cdk.Duration.minutes(5),
},
Expand All @@ -228,5 +229,6 @@ test("SQSToLambdaStage additional properties", () => {
template.resourceCountIs("AWS::SQS::Queue", 2);
template.hasResourceProperties("AWS::SQS::Queue", {
VisibilityTimeout: 300,
QueueName: "dummy-queue.fifo",
});
});

0 comments on commit 1adeb18

Please sign in to comment.