Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions test/source/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<never>, // 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';
Expand Down
1 change: 0 additions & 1 deletion test/source/tests/tooling/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export const newWithTimeoutsFunc = (consts: Consts): (<T>(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
]);
};

Expand Down
Loading