Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mazyu36 committed May 12, 2024
1 parent 4533771 commit 402d5b9
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-lib/aws-batch/lib/job-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export class JobQueue extends Resource implements IJobQueue {
const maxTimeSeconds = jobStateTimeLimitAction.maxTimeSeconds.toSeconds();

if (maxTimeSeconds < 600 || maxTimeSeconds > 86400) {
throw new Error(`maxTimeSeconds must be between 60 and 86400, got ${maxTimeSeconds}`);
throw new Error(`maxTimeSeconds must be between 600 and 86400, got ${maxTimeSeconds}`);
}

return {
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-batch/test/job-queue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,5 +332,5 @@ test('JobQueue with JobStateTimeLimitActions throws when maxTimeSeconds has an i
state: JobStateTimeLimitActionsState.RUNNABLE,
},
],
})).toThrow('maxTimeSeconds must be between 60 and 86400, got 90000');
})).toThrow('maxTimeSeconds must be between 600 and 86400, got 90000');
});

0 comments on commit 402d5b9

Please sign in to comment.