Skip to content

Commit 4c97b73

Browse files
committed
change message
1 parent cce6c5b commit 4c97b73

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/private/cluster-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function SpotProvisioningSpecificationPropertyToJson(property?: EmrCreateCluster
151151
return undefined;
152152
}
153153
if (!cdk.Token.isUnresolved(property.timeoutDurationMinutes) && (property.timeoutDurationMinutes < 5 || property.timeoutDurationMinutes > 1440)) {
154-
throw new Error(`timeout duration must be between 5 and 1440 minutes, got ${property.timeoutDurationMinutes}`);
154+
throw new Error(`timeoutDurationMinutes must be between 5 and 1440, got ${property.timeoutDurationMinutes}`);
155155
}
156156
return {
157157
AllocationStrategy: cdk.stringToCloudFormation(property.allocationStrategy),

packages/aws-cdk-lib/aws-stepfunctions-tasks/test/emr/emr-create-cluster.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ test('Throws if timeoutDurationMinutes for Spot instances is less than 5', () =>
12391239
// THEN
12401240
expect(() => {
12411241
task.toStateJson();
1242-
}).toThrow(/timeout duration must be between 5 and 1440 minutes, got 4/);
1242+
}).toThrow(/timeoutDurationMinutes must be between 5 and 1440, got 4/);
12431243
});
12441244

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

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

0 commit comments

Comments
 (0)