Skip to content

Commit 860928e

Browse files
sehropebrianc
authored andcommitted
Change test to use Buffer.from(...)
1 parent 272e9a5 commit 860928e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/client/network-partition-tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Server.prototype.start = function (cb) {
2222
this.socket.on('data', function (data) {
2323
// deny request for SSL
2424
if (data.length == 8) {
25-
this.socket.write(new Buffer('N', 'utf8'))
25+
this.socket.write(Buffer.from('N', 'utf8'))
2626
// consider all authentication requests as good
2727
} else if (!data[0]) {
2828
this.socket.write(buffers.authenticationOk())

0 commit comments

Comments
 (0)