From 860928e2d56b6c8a799f90bbee2e3d517fd32c13 Mon Sep 17 00:00:00 2001 From: Sehrope Sarkuni Date: Thu, 3 May 2018 08:01:43 -0400 Subject: [PATCH] Change test to use Buffer.from(...) --- test/integration/client/network-partition-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/client/network-partition-tests.js b/test/integration/client/network-partition-tests.js index 70dcc92b..e7198a47 100644 --- a/test/integration/client/network-partition-tests.js +++ b/test/integration/client/network-partition-tests.js @@ -22,7 +22,7 @@ Server.prototype.start = function (cb) { this.socket.on('data', function (data) { // deny request for SSL if (data.length == 8) { - this.socket.write(new Buffer('N', 'utf8')) + this.socket.write(Buffer.from('N', 'utf8')) // consider all authentication requests as good } else if (!data[0]) { this.socket.write(buffers.authenticationOk())