Skip to content

Commit eda8ad8

Browse files
committed
fix test
1 parent 5d22197 commit eda8ad8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

site/src/pages/WorkspaceSchedulePage/WorkspaceSchedulePage.test.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,13 @@ describe("WorkspaceSchedulePage", () => {
196196
],
197197

198198
// Basic case: 9:30 1-5 UTC running for 2 hours
199+
//
200+
// NOTE: We have to set CRON_TZ here because otherwise this test will
201+
// flake based off of where it runs!
199202
[
200203
{
201204
...Mocks.MockWorkspace,
202-
autostart_schedule: "30 9 * * 1-5",
205+
autostart_schedule: "CRON_TZ=UTC 30 9 * * 1-5",
203206
ttl: 7_200_000_000_000,
204207
},
205208
{
@@ -211,7 +214,7 @@ describe("WorkspaceSchedulePage", () => {
211214
friday: true,
212215
saturday: false,
213216
startTime: "09:30",
214-
timezone: "",
217+
timezone: "UTC",
215218
ttl: 2,
216219
},
217220
],

0 commit comments

Comments
 (0)