test: raise the timeout of the OAuth client suite

The suite re-imports GoogleAPIService after vi.resetModules() in every test;
under the parallel full run the first import exceeded 5 s and failed
(passes alone in about 1 s).
This commit is contained in:
evandro committed 2026-10-10 04:29:40 -03:00
1 parent 8e20c32117
commit 0a6a8ff4bb
1 file changed
+3 -1
+3 -1
View File
@@ -89,7 +89,9 @@ describe('GoogleAPIService Timeout', () => {
}); });
}); });
describe('GoogleAPIService OAuth clients', () => { // Each test resets the module registry and re-imports GoogleAPIService, which can exceed the default
// 5s timeout while the whole suite runs in parallel.
describe('GoogleAPIService OAuth clients', { timeout: 30_000 }, () => {
const originalOauthClientsEnv = process.env.ANTIGRAVITY_OAUTH_CLIENTS; const originalOauthClientsEnv = process.env.ANTIGRAVITY_OAUTH_CLIENTS;
const originalActiveOauthClientEnv = process.env.ANTIGRAVITY_OAUTH_CLIENT_KEY; const originalActiveOauthClientEnv = process.env.ANTIGRAVITY_OAUTH_CLIENT_KEY;