diff options
author | Mir Mufaqam Ali <mannanali413@gmail.com> | 2017-12-20 17:28:03 +0530 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2017-12-24 00:03:39 +0800 |
commit | 79261f3003719264bc03f6a5b54cf9eddbc8b48e (patch) | |
tree | 15825a4173ea27e4bb17e9bfb17fa9a061c81848 /test/parallel/test-tls-disable-renegotiation.js | |
parent | 0b7889582428b3cf1ea0ee48768854a2ca63478c (diff) | |
download | android-node-v8-79261f3003719264bc03f6a5b54cf9eddbc8b48e.tar.gz android-node-v8-79261f3003719264bc03f6a5b54cf9eddbc8b48e.tar.bz2 android-node-v8-79261f3003719264bc03f6a5b54cf9eddbc8b48e.zip |
tls: migrate errors in _tls_wrap.js
This migrates the old style error in _tls_wrap.js to
the new style error ERR_TLS_RENEGOTIATION_DISABLED.
Refs: https://github.com/nodejs/node/issues/17709
PR-URL: https://github.com/nodejs/node/pull/17792
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-disable-renegotiation.js')
-rw-r--r-- | test/parallel/test-tls-disable-renegotiation.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/parallel/test-tls-disable-renegotiation.js b/test/parallel/test-tls-disable-renegotiation.js index 7e64710da5..b688079a58 100644 --- a/test/parallel/test-tls-disable-renegotiation.js +++ b/test/parallel/test-tls-disable-renegotiation.js @@ -17,9 +17,11 @@ const options = { const server = tls.Server(options, common.mustCall((socket) => { socket.on('error', common.mustCall((err) => { - assert.strictEqual( - err.message, - 'TLS session renegotiation disabled for this socket'); + common.expectsError({ + type: Error, + code: 'ERR_TLS_RENEGOTIATION_DISABLED', + message: 'TLS session renegotiation disabled for this socket' + })(err); socket.destroy(); server.close(); })); |