mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(screenshot): slow down concurrent screenshot downloads (#17771)
This commit is contained in:
@@ -23,8 +23,10 @@ class IonicConnector extends ScreenshotConnector {
|
||||
return true
|
||||
});
|
||||
|
||||
if (missingImages.length > 0) {
|
||||
await Promise.all(missingImages.map(async image => {
|
||||
while (missingImages.length > 0) {
|
||||
const images = missingImages.splice(0, 20);
|
||||
|
||||
await Promise.all(images.map(async image => {
|
||||
this.logger.debug(`downloading: ${image}`);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user