From 55edb5f4c3756654bf20b16ccbee35d2b7acf518 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 17 Dec 2024 11:42:02 +0800 Subject: [PATCH] change clear-platform download timeout (#18045) Co-authored-by: zhiming.wu --- native/utils/clear-platform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/utils/clear-platform.js b/native/utils/clear-platform.js index 42aa9ea157..019afa301c 100644 --- a/native/utils/clear-platform.js +++ b/native/utils/clear-platform.js @@ -253,7 +253,7 @@ async function minimizeBoost() { let boostURL; console.log(`Testing local url: ${BOOST_URL_LOCAL}`); try { - const FETCH_TIMEOUTOUT = 3000; + const FETCH_TIMEOUTOUT = 30 * 1000; const testLocal = await Promise.race( [fetch(BOOST_URL_LOCAL), new Promise((_, r)=> { setTimeout(()=> r(new Error('Request timed out')), FETCH_TIMEOUTOUT); })]);