summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-alert-handling.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-alert-handling.js')
-rw-r--r--test/parallel/test-tls-alert-handling.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-tls-alert-handling.js b/test/parallel/test-tls-alert-handling.js
index 5e63384b00..8c986b25f5 100644
--- a/test/parallel/test-tls-alert-handling.js
+++ b/test/parallel/test-tls-alert-handling.js
@@ -71,7 +71,7 @@ function sendClient() {
function sendBADTLSRecord() {
- var BAD_RECORD = new Buffer([0xff, 0xff, 0xff, 0xff, 0xff, 0xff]);
+ var BAD_RECORD = Buffer.from([0xff, 0xff, 0xff, 0xff, 0xff, 0xff]);
var socket = net.connect(common.PORT);
var client = tls.connect({
socket: socket,