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: add regex for expected error message · nodejs/node@c65de59

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-tls-key-mismatch.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-tls-key-mismatch.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-tls-key-mismatch.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ if (!common.hasCrypto) {
88
const assert = require('assert');
99
const tls = require('tls');
1010
const fs = require('fs');
11+
const errorMessageRegex = new RegExp('^Error: error:0B080074:x509 ' +
12+
'certificate routines:X509_check_private_key:key values mismatch$');
1113

1214
const options = {
1315
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
@@ -16,4 +18,4 @@ const options = {
1618

1719
assert.throws(function() {
1820
tls.createSecureContext(options);
19-
});
21+
}, errorMessageRegex);

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.