Skip to content

Commit

Permalink
chore(sqs): fix typo (aws#13883)
Browse files Browse the repository at this point in the history
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
shumailxyz authored Apr 1, 2021
1 parent 767cd31 commit b2d4548
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-sqs/lib/validate-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ function validateRange(label: string, value: number | undefined, minValue: numbe
if (value === undefined || Token.isUnresolved(value)) { return; }
const unitSuffix = unit ? ` ${unit}` : '';
if (value < minValue) { throw new Error(`${label} must be ${minValue}${unitSuffix} or more, but ${value} was provided`); }
if (value > maxValue) { throw new Error(`${label} must be ${maxValue}${unitSuffix} of less, but ${value} was provided`); }
if (value > maxValue) { throw new Error(`${label} must be ${maxValue}${unitSuffix} or less, but ${value} was provided`); }
}
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-sqs/test/test.sqs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export = {

test.throws(() => new sqs.Queue(stack, 'AnotherQueue', {
retentionPeriod: Duration.days(15),
}), /message retention period must be 1209600 seconds of less/);
}), /message retention period must be 1209600 seconds or less/);

test.done();
},
Expand Down

0 comments on commit b2d4548

Please sign in to comment.