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:
parent
ca1d22e6d5
commit
d2eb7d6694
2 changed files with 3 additions and 4 deletions
|
@ -15,3 +15,5 @@ global.fetch = fetch;
|
|||
global.TextDecoder = TextDecoder;
|
||||
global.TextEncoder = TextEncoder;
|
||||
/* eslint-enable @silverhand/fp/no-mutation */
|
||||
|
||||
jest.setTimeout(10_000);
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue