diff --git a/test/unit/connection/error-tests.js b/test/unit/connection/error-tests.js index c8b61b432..329e1e316 100644 --- a/test/unit/connection/error-tests.js +++ b/test/unit/connection/error-tests.js @@ -44,7 +44,7 @@ suite.test('connection does not emit ECONNRESET errors during disconnect also wh var server = net.createServer(function (c) { socket = c c.once('data', function (data) { - c.write(new Buffer('S', 'utf8')) + c.write(Buffer.from('S')) }) })