0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

test: increase integration test case timeout to 10s (#1869)

This commit is contained in:
Xiao Yijun 2022-09-02 17:20:09 +08:00 committed by GitHub
parent ca1d22e6d5
commit d2eb7d6694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -15,3 +15,5 @@ global.fetch = fetch;
global.TextDecoder = TextDecoder;
global.TextEncoder = TextEncoder;
/* eslint-enable @silverhand/fp/no-mutation */
jest.setTimeout(10_000);

View file

@ -2,14 +2,11 @@ import got from 'got';
import { logtoUrl } from '@/constants';
const requestTimeout = 10_000;
export default got.extend({ prefixUrl: new URL('/api', logtoUrl), timeout: requestTimeout });
export default got.extend({ prefixUrl: new URL('/api', logtoUrl) });
export const authedAdminApi = got.extend({
prefixUrl: new URL('/api', logtoUrl),
headers: {
'development-user-id': 'integration-test-admin-user',
},
timeout: requestTimeout,
});