Skip to content

Commit

Permalink
change clear-platform download timeout (#18045)
Browse files Browse the repository at this point in the history
Co-authored-by: zhiming.wu <[email protected]>
  • Loading branch information
wuzhiming and zhiming.wu authored Dec 17, 2024
1 parent 815c595 commit 55edb5f
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 55edb5f

Please sign in to comment.