diff options
Diffstat (limited to 'test/parallel/test-cluster-dgram-2.js')
-rw-r--r-- | test/parallel/test-cluster-dgram-2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-cluster-dgram-2.js b/test/parallel/test-cluster-dgram-2.js index 69e9e9d7500..6825817f588 100644 --- a/test/parallel/test-cluster-dgram-2.js +++ b/test/parallel/test-cluster-dgram-2.js @@ -51,7 +51,7 @@ function master() { function worker() { // Create udp socket and send packets to master. var socket = dgram.createSocket('udp4'); - var buf = new Buffer('hello world'); + var buf = Buffer.from('hello world'); // This test is intended to exercise the cluster binding of udp sockets, but // since sockets aren't clustered when implicitly bound by at first call of |