Skip to content

Commit 1ae0034

Browse files
committed
fix integration custom granularities tests
1 parent 980e223 commit 1ae0034

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

packages/cubejs-schema-compiler/test/integration/clickhouse/custom-granularities.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ describe('Custom Granularities', () => {
4141
granularities:
4242
- name: half_year
4343
interval: 6 months
44+
origin: '2024-01-01' # to keep tests stable across time (year change, etc)
4445
- name: half_year_by_1st_april
4546
interval: 6 months
46-
offset: 3 months
47+
#offset: 3 months
48+
origin: '2024-04-01' # to keep tests stable across time (year change, etc)
4749
- name: two_weeks_by_friday
4850
interval: 2 weeks
4951
origin: '2024-08-23'

packages/cubejs-schema-compiler/test/integration/mssql/custom-granularities.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ describe('Custom Granularities', () => {
3737
granularities:
3838
- name: half_year
3939
interval: 6 months
40+
origin: '2024-01-01' # to keep tests stable across time (year change, etc)
4041
- name: half_year_by_1st_april
4142
interval: 6 months
42-
offset: 3 months
43+
#offset: 3 months
44+
origin: '2024-04-01' # to keep tests stable across time (year change, etc)
4345
- name: two_weeks_by_friday
4446
interval: 2 weeks
4547
origin: '2024-08-23'

packages/cubejs-schema-compiler/test/integration/mysql/custom-granularities.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ describe('Custom Granularities', () => {
3737
granularities:
3838
- name: half_year
3939
interval: 6 months
40+
origin: '2024-01-01' # to keep tests stable across time (year change, etc)
4041
- name: half_year_by_1st_april
4142
interval: 6 months
42-
offset: 3 months
43+
#offset: 3 months
44+
origin: '2024-04-01' # to keep tests stable across time (year change, etc)
4345
- name: two_weeks_by_friday
4446
interval: 2 weeks
4547
origin: '2024-08-23'

packages/cubejs-schema-compiler/test/integration/postgres/custom-granularities.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ describe('Custom Granularities', () => {
3939
granularities:
4040
- name: half_year
4141
interval: 6 months
42+
origin: '2024-01-01' # to keep tests stable across time (year change, etc)
4243
- name: half_year_by_1st_april
4344
interval: 6 months
44-
offset: 3 months
45+
#offset: 3 months
46+
origin: '2024-04-01' # to keep tests stable across time (year change, etc)
4547
- name: two_weeks_by_friday
4648
interval: 2 weeks
4749
origin: '2024-08-23'

0 commit comments

Comments
 (0)