mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-19 14:52:40 +08:00
change clear-platform download timeout (#18045)
Co-authored-by: zhiming.wu <zhiming.wu@cocos.com>
This commit is contained in:
@@ -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);
|
||||
})]);
|
||||
|
||||
Reference in New Issue
Block a user