0
Fork 0
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:
Xiao Yijun 2022-08-29 18:26:55 +08:00 committed by GitHub
parent 770e0507c7
commit 5d1b7c3767
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
});