Skip to content

Commit 88dd931

Browse files
committed
fixup! improve(wrangler): bounds checking for when setting queue delivery delay
1 parent 21f1482 commit 88dd931

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/wrangler/src/__tests__/queues.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ describe("wrangler", () => {
347347
await expect(
348348
runWrangler("queues create testQueue --delivery-delay-secs=99999")
349349
).rejects.toThrowErrorMatchingInlineSnapshot(
350-
`[Error: Invalid --delivery-delay-secs value: 99999. Must be between 0 and 42300]`
350+
`[Error: Invalid --delivery-delay-secs value: 99999. Must be between 0 and 43200]`
351351
);
352352

353353
expect(requests.count).toEqual(0);
@@ -607,7 +607,7 @@ describe("wrangler", () => {
607607
await expect(
608608
runWrangler("queues update testQueue --delivery-delay-secs=99999")
609609
).rejects.toThrowErrorMatchingInlineSnapshot(
610-
`[Error: Invalid --delivery-delay-secs value: 99999. Must be between 0 and 42300]`
610+
`[Error: Invalid --delivery-delay-secs value: 99999. Must be between 0 and 43200]`
611611
);
612612

613613
expect(requests.count).toEqual(0);

packages/wrangler/src/queues/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const INVALID_CONSUMER_SETTINGS_ERROR = 100127;
22
export const INVALID_QUEUE_SETTINGS_ERROR = 100128;
33

44
export const MIN_DELIVERY_DELAY_SECS = 0;
5-
export const MAX_DELIVERY_DELAY_SECS = 42300;
5+
export const MAX_DELIVERY_DELAY_SECS = 43200;
66

77
export const MIN_MESSAGE_RETENTION_PERIOD_SECS = 60;
88
export const MAX_MESSAGE_RETENTION_PERIOD_SECS = 1209600;

0 commit comments

Comments
 (0)