We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 348cc80 commit 502f9f3Copy full SHA for 502f9f3
test/parallel/test-tls-key-mismatch.js
@@ -29,6 +29,8 @@ if (!common.hasCrypto) {
29
const assert = require('assert');
30
const tls = require('tls');
31
const fs = require('fs');
32
+const errorMessageRegex = new RegExp('^Error: error:0B080074:x509 ' +
33
+ 'certificate routines:X509_check_private_key:key values mismatch$');
34
35
const options = {
36
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
@@ -37,4 +39,4 @@ const options = {
37
39
38
40
assert.throws(function() {
41
tls.createSecureContext(options);
-});
42
+}, errorMessageRegex);
0 commit comments