Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions lib/wpt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@
await removeDirectory(this.fixtures(this.path));

this.cli.startSpinner('Pulling assets...');
await Promise.all(assets.map(
(asset) => this.pullTextFile(fixtures, asset.name)
));
// See https://github.com/nodejs/node-core-utils/issues/810
for (let i = 0; i < assets.length; i += 10) {
const chunk = assets.slice(i, i + 10);
await Promise.all(chunk.map(
(asset) => this.pullTextFile(fixtures, asset.name)
));
}

Check warning on line 88 in lib/wpt/index.js

View check run for this annotation

Codecov / codecov/patch

lib/wpt/index.js#L82-L88

Added lines #L82 - L88 were not covered by tests
this.cli.stopSpinner(`Downloaded ${assets.length} assets.`);

return assets;
Expand Down
Loading