Skip to content

Commit

Permalink
fix tests for time series limit
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon committed Sep 5, 2024
1 parent 6cf2883 commit b6ae1d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cubejs-backend-shared/test/time.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('time', () => {
it('time series - reach limits', () => {
expect(() => {
timeSeries('second', ['1970-01-01', '2021-01-02']);
}).toThrowError(/The count of generated date ranges for the request.*reached the limits/);
}).toThrowError(/The count of generated date ranges.*for the request.*is over limit/);
});

it('time series - custom: interval - 1 year, origin - 2021-01-01', () => {
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('time', () => {
it('time series - custom: interval - reach limits', () => {
expect(() => {
timeSeriesFromCustomInterval('10 minutes 15 seconds', ['1970-01-01', '2021-01-02'], moment('2021-02-01 09:59:45'));
}).toThrowError(/The count of generated date ranges for the request.*reached the limits/);
}).toThrowError(/The count of generated date ranges.*for the request.*is over limit/);
});

it('inDbTimeZone', () => {
Expand Down

0 comments on commit b6ae1d0

Please sign in to comment.