diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js index c59153b758d772..fc2fb6db5d12ae 100644 --- a/lib/_tls_legacy.js +++ b/lib/_tls_legacy.js @@ -951,6 +951,6 @@ module.exports = { createSecurePair: internalUtil.deprecate(createSecurePair, 'tls.createSecurePair() is deprecated. Please use ' + - 'tls.Socket instead.', 'DEP0064'), + 'tls.TLSSocket instead.', 'DEP0064'), pipe }; diff --git a/test/parallel/test-tls-legacy-deprecated.js b/test/parallel/test-tls-legacy-deprecated.js index 4a6120c71b1f77..3b1919010e40e6 100644 --- a/test/parallel/test-tls-legacy-deprecated.js +++ b/test/parallel/test-tls-legacy-deprecated.js @@ -9,7 +9,7 @@ const tls = require('tls'); common.expectWarning( 'DeprecationWarning', - 'tls.createSecurePair() is deprecated. Please use tls.Socket instead.' + 'tls.createSecurePair() is deprecated. Please use tls.TLSSocket instead.' ); assert.doesNotThrow(() => tls.createSecurePair());