fix(test): apiContext socket hangup issue in AUTs (#20569)

This commit is contained in:
Chirag Madlani 2025-04-02 11:52:03 +05:30 committed by GitHub
parent 4ec2077bbc
commit f7d9720486
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,8 +48,9 @@ export const getToken = async (page: Page) => {
export const getAuthContext = async (token: string) => {
return await request.newContext({
// Default timeout is 30s making it to 1m for AUTs
timeout: 60000,
timeout: 90000,
extraHTTPHeaders: {
Connection: 'keep-alive',
Authorization: `Bearer ${token}`,
},
});