From c05b063f10b10c73a0ec8dc6c155004a92885202 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Thu, 9 Feb 2023 09:19:31 +0000 Subject: [PATCH] Bump CI default unit test timeout to 10s --- packages/server/src/tests/jestSetup.ts | 4 +++- packages/worker/src/tests/jestSetup.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/server/src/tests/jestSetup.ts b/packages/server/src/tests/jestSetup.ts index 9b6036467d..d87ccbfe7c 100644 --- a/packages/server/src/tests/jestSetup.ts +++ b/packages/server/src/tests/jestSetup.ts @@ -10,7 +10,9 @@ if (!process.env.DEBUG) { if (!process.env.CI) { // set a longer timeout in dev for debugging // 100 seconds - jest.setTimeout(100000) + jest.setTimeout(100 * 1000) +} else { + jest.setTimeout(10 * 1000) } testContainerUtils.setupEnv(env, coreEnv) diff --git a/packages/worker/src/tests/jestSetup.ts b/packages/worker/src/tests/jestSetup.ts index 790f942a30..2deef96176 100644 --- a/packages/worker/src/tests/jestSetup.ts +++ b/packages/worker/src/tests/jestSetup.ts @@ -18,7 +18,9 @@ if (!process.env.DEBUG) { if (!process.env.CI) { // set a longer timeout in dev for debugging // 100 seconds - jest.setTimeout(100000) + jest.setTimeout(100 * 1000) +} else { + jest.setTimeout(10 * 1000) } testContainerUtils.setupEnv(env, coreEnv)