Skip to content

Commit

Permalink
Tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
pmiguel committed Mar 21, 2024
1 parent 2283f44 commit 4926222
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/wrangler/src/__tests__/queues.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ describe("wrangler", () => {
"queues create testQueue --delivery-delay=5 --delivery-delay=10"
)
).rejects.toThrowErrorMatchingInlineSnapshot(
`"Error: can't use more than a delay setting."`
`"Cannot specify --delivery-delay multiple times"`
);

expect(requests.count).toEqual(0);
Expand Down Expand Up @@ -430,7 +430,7 @@ describe("wrangler", () => {
--message-retries Maximum number of retries for each message [number]
--dead-letter-queue Queue to send messages that failed to be consumed [string]
--max-concurrency The maximum number of concurrent consumer Worker invocations. Must be a positive integer [number]
--retry-delay How long a retried messages should be delayed for, in seconds. Must be a positive integer [number]"
--retry-delay How long a retried message should be delayed for, in seconds. Must be a positive integer [number]"
`);
});

Expand Down Expand Up @@ -499,7 +499,7 @@ describe("wrangler", () => {
"queues consumer add testQueue testScript --env myEnv --batch-size 20 --batch-timeout 10 --message-retries 3 --max-concurrency 3 --dead-letter-queue myDLQ --retry-delay=5 --retry-delay=10"
)
).rejects.toThrowErrorMatchingInlineSnapshot(
`"Error: can't use more than a delay setting."`
`"Cannot specify --retry-delay multiple times"`
);

expect(requests.count).toEqual(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function createBody(

if (Array.isArray(args.retryDelay)) {
throw new CommandLineArgsError(
`Error: can't use more than a delay setting.`
`Cannot specify --retry-delay multiple times`
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/queues/cli/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function options(yargs: CommonYargsArgv) {
"delivery-delay": {
type: "number",
describe:
"How long a published messages should be delayed for, in seconds. Must be a positive integer",
"How long a published message should be delayed for, in seconds. Must be a positive integer",
},
});
}
Expand Down

0 comments on commit 4926222

Please sign in to comment.