Skip to content

Commit

Permalink
change message
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k committed Dec 30, 2023
1 parent cce6c5b commit 4c97b73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function SpotProvisioningSpecificationPropertyToJson(property?: EmrCreateCluster
return undefined;
}
if (!cdk.Token.isUnresolved(property.timeoutDurationMinutes) && (property.timeoutDurationMinutes < 5 || property.timeoutDurationMinutes > 1440)) {
throw new Error(`timeout duration must be between 5 and 1440 minutes, got ${property.timeoutDurationMinutes}`);
throw new Error(`timeoutDurationMinutes must be between 5 and 1440, got ${property.timeoutDurationMinutes}`);
}
return {
AllocationStrategy: cdk.stringToCloudFormation(property.allocationStrategy),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ test('Throws if timeoutDurationMinutes for Spot instances is less than 5', () =>
// THEN
expect(() => {
task.toStateJson();
}).toThrow(/timeout duration must be between 5 and 1440 minutes, got 4/);
}).toThrow(/timeoutDurationMinutes must be between 5 and 1440, got 4/);
});

test('Throws if timeoutDurationMinutes for Spot instances is greater than 1440', () => {
Expand Down Expand Up @@ -1267,7 +1267,7 @@ test('Throws if timeoutDurationMinutes for Spot instances is greater than 1440',
// THEN
expect(() => {
task.toStateJson();
}).toThrow(/timeout duration must be between 5 and 1440 minutes, got 1441/);
}).toThrow(/timeoutDurationMinutes must be between 5 and 1440, got 1441/);
});

test('Throws if both bidPrice and bidPriceAsPercentageOfOnDemandPrice are specified', () => {
Expand Down

0 comments on commit 4c97b73

Please sign in to comment.