GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: revise test-policy-integrity · nodejs/node@379c5ce

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/pummel
    • test-policy-integrity.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/pummel/test-policy-integrity.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-policy-integrity.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const fs = require('fs');
1313
const path = require('path');
1414
const { pathToFileURL } = require('url');
1515

16+
const cpus = require('os').cpus().length;
17+
1618
function hash(algo, body) {
1719
const values = [];
1820
{
@@ -82,7 +84,7 @@ function queueSpawn(opts) {
8284
}
8385

8486
function drainQueue() {
85-
if (spawned > 50) {
87+
if (spawned > cpus) {
8688
return;
8789
}
8890
if (toSpawn.length) {
@@ -383,6 +385,5 @@ debug(`spawning ${tests.size} policy integrity permutations`);
383385

384386
for (const config of tests) {
385387
const parsed = JSON.parse(config);
386-
tests.delete(config);
387388
queueSpawn(parsed);
388389
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.