diff --git a/test/source/test.ts b/test/source/test.ts index 288e714adc9..455d3b8167b 100644 --- a/test/source/test.ts +++ b/test/source/test.ts @@ -36,17 +36,14 @@ const consts = { // higher concurrency can cause 429 google errs when composing TIMEOUT_SHORT: minutes(1), TIMEOUT_EACH_RETRY: minutes(4), - TIMEOUT_ALL_RETRIES: minutes(55), // this has to suffer waiting for semaphore between retries, thus almost the same as below - TIMEOUT_OVERALL: minutes(60), + TIMEOUT_ALL_RETRIES: minutes(55), ATTEMPTS: testGroup === 'STANDARD-GROUP' ? oneIfNotPooled(3) : process.argv.includes('--retry=false') ? 1 : 3, POOL_SIZE: oneIfNotPooled(isMock ? 20 : 3), - PROMISE_TIMEOUT_OVERALL: undefined as unknown as Promise, // will be set right below IS_LOCAL_DEBUG: process.argv.includes('--debug') ? true : false, // run locally by developer, not in ci }; /* eslint-enable @typescript-eslint/naming-convention */ console.info('consts: ', JSON.stringify(consts), '\n'); -consts.PROMISE_TIMEOUT_OVERALL = new Promise((resolve, reject) => setTimeout(() => reject(new Error(`TIMEOUT_OVERALL`)), consts.TIMEOUT_OVERALL)); export type Consts = typeof consts; export type CommonAcct = 'compatibility' | 'compose' | 'ci.tests.gmail'; diff --git a/test/source/tests/tooling/index.ts b/test/source/tests/tooling/index.ts index bc45e24430f..a78c8649754 100644 --- a/test/source/tests/tooling/index.ts +++ b/test/source/tests/tooling/index.ts @@ -81,7 +81,6 @@ export const newWithTimeoutsFunc = (consts: Consts): ((actionPromise: Promise Promise.race([ actionPromise, // the actual action being performed timeoutAllRetries, // timeout for all test retries - consts.PROMISE_TIMEOUT_OVERALL, // overall timeout for the whole test process / sequence ]); };