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: fix test-tls-env-extra-ca-file-load · nodejs/node@7060ed1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-tls-env-extra-ca-file-load.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-tls-env-extra-ca-file-load.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-tls-env-extra-ca-file-load.js
+9-8Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ const { fork } = require('child_process');
1616

1717
// This test ensures that extra certificates are loaded at startup.
1818
if (process.argv[2] !== 'child') {
19-
if (process.env.CHILD_USE_EXTRA_CA_CERTS === 'yes') {
20-
assert.strictEqual(binding.isExtraRootCertsFileLoaded(), true);
21-
} else if (process.env.CHILD_USE_EXTRA_CA_CERTS === 'no') {
22-
assert.strictEqual(binding.isExtraRootCertsFileLoaded(), false);
23-
tls.createServer({});
24-
assert.strictEqual(binding.isExtraRootCertsFileLoaded(), false);
25-
}
26-
} else {
19+
// Parent
2720
const NODE_EXTRA_CA_CERTS = fixtures.path('keys', 'ca1-cert.pem');
2821
const extendsEnv = (obj) => ({ ...process.env, ...obj });
2922

@@ -37,4 +30,12 @@ if (process.argv[2] !== 'child') {
3730
assert.strictEqual(status, 0);
3831
}));
3932
});
33+
} else if (process.env.CHILD_USE_EXTRA_CA_CERTS === 'yes') {
34+
// Child with extra certificates loaded at startup.
35+
assert.strictEqual(binding.isExtraRootCertsFileLoaded(), true);
36+
} else {
37+
// Child without extra certificates.
38+
assert.strictEqual(binding.isExtraRootCertsFileLoaded(), false);
39+
tls.createServer({});
40+
assert.strictEqual(binding.isExtraRootCertsFileLoaded(), false);
4041
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.