diff options
author | Michael Dawson <michael_dawson@ca.ibm.com> | 2017-06-29 19:20:11 -0400 |
---|---|---|
committer | Michael Dawson <michael_dawson@ca.ibm.com> | 2017-07-18 14:03:23 -0400 |
commit | 3ccfeb483df5a6402da9b40346a7eb33cfb4b70a (patch) | |
tree | 878d224d17cfd4e9106f0871279110a913beec1e /test/parallel/test-tls-client-verify.js | |
parent | f406a7ebaee09c00b6dec330e17897924096c30d (diff) | |
download | android-node-v8-3ccfeb483df5a6402da9b40346a7eb33cfb4b70a.tar.gz android-node-v8-3ccfeb483df5a6402da9b40346a7eb33cfb4b70a.tar.bz2 android-node-v8-3ccfeb483df5a6402da9b40346a7eb33cfb4b70a.zip |
tls: migrate tls.js to use internal/errors.js
Migrate tls.js to use internal/errors.js as per
https://github.com/nodejs/node/issues/11273
PR-URL: https://github.com/nodejs/node/pull/13994
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-client-verify.js')
-rw-r--r-- | test/parallel/test-tls-client-verify.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-tls-client-verify.js b/test/parallel/test-tls-client-verify.js index 2171851665..097ec264e7 100644 --- a/test/parallel/test-tls-client-verify.js +++ b/test/parallel/test-tls-client-verify.js @@ -29,7 +29,6 @@ const fs = require('fs'); const path = require('path'); const tls = require('tls'); -const hosterr = /Hostname\/IP doesn't match certificate's altnames/; const testCases = [{ ca: ['ca1-cert'], key: 'agent2-key', @@ -101,7 +100,7 @@ function testServers(index, servers, clientOptions, cb) { clientOptions.port = this.address().port; const client = tls.connect(clientOptions, common.mustCall(function() { const authorized = client.authorized || - hosterr.test(client.authorizationError); + (client.authorizationError === 'ERR_TLS_CERT_ALTNAME_INVALID'); console.error(`expected: ${ok} authed: ${authorized}`); |