change clear-platform download timeout (#18045)

Co-authored-by: zhiming.wu <zhiming.wu@cocos.com>
This commit is contained in:
Max
2024-12-17 11:42:02 +08:00
committed by GitHub
parent 815c59589c
commit 55edb5f4c3
+1 -1
View File
@@ -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);
})]);