mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
test: increase request timeout in integration tests (#1832)
This commit is contained in:
parent
770e0507c7
commit
5d1b7c3767
1 changed files with 4 additions and 1 deletions
|
@ -2,11 +2,14 @@ import got from 'got';
|
|||
|
||||
import { logtoUrl } from '@/constants';
|
||||
|
||||
export default got.extend({ prefixUrl: new URL('/api', logtoUrl) });
|
||||
const requestTimeout = 10_000;
|
||||
|
||||
export default got.extend({ prefixUrl: new URL('/api', logtoUrl), timeout: requestTimeout });
|
||||
|
||||
export const authedAdminApi = got.extend({
|
||||
prefixUrl: new URL('/api', logtoUrl),
|
||||
headers: {
|
||||
'development-user-id': 'integration-test-admin-user',
|
||||
},
|
||||
timeout: requestTimeout,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue