chore(screenshot): slow down concurrent screenshot downloads (#17771)

This commit is contained in:
Adam Bradley
2019-03-13 09:03:53 -05:00
committed by GitHub
parent ec3acc9ec8
commit c551f891d3

View File

@@ -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 {