We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8673073 commit cbbc80dCopy full SHA for cbbc80d
lib/wpt/index.js
@@ -79,9 +79,12 @@ export class WPTUpdater {
79
await removeDirectory(this.fixtures(this.path));
80
81
this.cli.startSpinner('Pulling assets...');
82
- await Promise.all(assets.map(
83
- (asset) => this.pullTextFile(fixtures, asset.name)
84
- ));
+ for (let i = 0; i < assets.length; i += 10) {
+ const chunk = assets.slice(i, i + 10)
+ await Promise.all(chunk.map(
85
+ (asset) => this.pullTextFile(fixtures, asset.name)
86
+ ));
87
+ }
88
this.cli.stopSpinner(`Downloaded ${assets.length} assets.`);
89
90
return assets;
0 commit comments