Skip to content

Commit

Permalink
feat(scheduler): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurai-ryo committed Dec 13, 2023
1 parent f509ef6 commit 461f5ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-scheduler-alpha/test/schedule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe('Schedule', () => {
target: new SomeLambdaTarget(func, role),
timeWindow: TimeWindow.flexible(Duration.minutes(1441)),
});
}).toThrow('maximumWindowInMinutes must be between 1 and 1440, got 1441');
}).toThrow('The provided duration must be between 1 minute and 1440 minutes, got 1441');
});

test('throw error when maximumWindowInMinutes is less than 1', () => {
Expand All @@ -179,7 +179,7 @@ describe('Schedule', () => {
target: new SomeLambdaTarget(func, role),
timeWindow: TimeWindow.flexible(Duration.minutes(0)),
});
}).toThrow('maximumWindowInMinutes must be between 1 and 1440, got 0');
}).toThrow('The provided duration must be between 1 minute and 1440 minutes, got 0');
});
});
});

0 comments on commit 461f5ba

Please sign in to comment.