diff --git a/test/disabled/test-sendfd.js b/test/disabled/test-sendfd.js index 89367369bbdba5..3352e63532c127 100644 --- a/test/disabled/test-sendfd.js +++ b/test/disabled/test-sendfd.js @@ -50,7 +50,6 @@ const common = require('../common'); const assert = require('assert'); -const buffer = require('buffer'); const child_process = require('child_process'); const fs = require('fs'); const net = require('net'); @@ -112,7 +111,7 @@ var srv = net.createServer(function(s) { var str = JSON.stringify(DATA) + '\n'; DATA.ord = DATA.ord + 1; - var buf = buffer.Buffer.allocUnsafe(str.length); + var buf = Buffer.allocUnsafe(str.length); buf.write(JSON.stringify(DATA) + '\n', 'utf8'); s.write(str, 'utf8', pipeFDs[1]); diff --git a/test/internet/test-dgram-broadcast-multi-process.js b/test/internet/test-dgram-broadcast-multi-process.js index a79c05e18e1675..79e139248454d5 100644 --- a/test/internet/test-dgram-broadcast-multi-process.js +++ b/test/internet/test-dgram-broadcast-multi-process.js @@ -25,7 +25,6 @@ const assert = require('assert'); const dgram = require('dgram'); const util = require('util'); const networkInterfaces = require('os').networkInterfaces(); -const Buffer = require('buffer').Buffer; const fork = require('child_process').fork; const LOCAL_BROADCAST_HOST = '255.255.255.255'; const TIMEOUT = common.platformTimeout(5000); diff --git a/test/pummel/test-https-no-reader.js b/test/pummel/test-https-no-reader.js index 2a446bfbdd3add..cc77993a7312f6 100644 --- a/test/pummel/test-https-no-reader.js +++ b/test/pummel/test-https-no-reader.js @@ -29,7 +29,6 @@ if (!common.hasCrypto) { } const https = require('https'); -const Buffer = require('buffer').Buffer; const fs = require('fs'); const path = require('path');