Skip to content

Commit 6cd3ff3

Browse files
committed
increase timeout for test
1 parent e22e77f commit 6cd3ff3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom-redirect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export async function c_redirect(request, response, thrownError = null, isMainte
123123
if (!npmUp) {
124124
return makeResponse(
125125
REDIRECT.generateErrorPage(
126-
"503",
126+
"502",
127127
env.TEXT_CONTAINER_ERROR_TYPE,
128128
env.TEXT_CONTAINER_ERROR_MESSAGE + "<br> npmUp: " + npmUp + "<br> cfCode: " + cfCode + "<br> response.status: " + response.status+ "<br> originUp: " + originUp + "<br> COUCOU6",
129129
env.TEXT_CONTAINER_ERROR_GIF

helper-functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const HELPER = {
4141
* @param {Object} options - Request options
4242
* @returns {Promise<boolean>} true if NPM is accessible
4343
*/
44-
async isNpmUp({ timeoutMs = 2000 } = {}, env) {
44+
async isNpmUp({ timeoutMs = 10000 } = {}, env) {
4545
const [controller, id] = createTimeoutController(timeoutMs);
4646
try {
4747
const response = await fetchWithMethodFallback(env.NPM_HEALTH_URL, { signal: controller.signal });

0 commit comments

Comments
 (0)