We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70a8ee1 commit 9825e7cCopy full SHA for 9825e7c
test/unit/connection/error-tests.js
@@ -44,7 +44,7 @@ suite.test('connection does not emit ECONNRESET errors during disconnect also wh
44
var server = net.createServer(function (c) {
45
socket = c
46
c.once('data', function (data) {
47
- c.write(new Buffer('S', 'utf8'))
+ c.write(Buffer.from('S'))
48
})
49
50
0 commit comments