We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a73dea9 commit 1c0435bCopy full SHA for 1c0435b
test/parallel/test-tls-key-mismatch.js
@@ -8,6 +8,8 @@ if (!common.hasCrypto) {
8
const assert = require('assert');
9
const tls = require('tls');
10
const fs = require('fs');
11
+const errorMessageRegex = new RegExp('^Error: error:0B080074:x509 ' +
12
+ 'certificate routines:X509_check_private_key:key values mismatch$');
13
14
const options = {
15
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
@@ -16,4 +18,4 @@ const options = {
16
18
17
19
assert.throws(function() {
20
tls.createSecureContext(options);
-});
21
+}, errorMessageRegex);
0 commit comments