Skip to content

Commit

Permalink
change clear-platform download timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiming.wu committed Dec 17, 2024
1 parent dcdbc64 commit f1b23f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/utils/clear-platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})]);
Expand Down

0 comments on commit f1b23f1

Please sign in to comment.