From 3299a1a19bdd3adf97c2ccc5e736564f6822f964 Mon Sep 17 00:00:00 2001 From: sreepurnajasti Date: Mon, 8 Jan 2018 14:31:26 +0530 Subject: [PATCH] test: remove trivial buffer imports Refs: #13836 PR-URL: https://github.com/nodejs/node/pull/18034 Refs: https://github.com/nodejs/node/issues/13836 Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Daniel Bevenius Reviewed-By: Khaidi Chu Reviewed-By: Luigi Pinca --- test/internet/test-dgram-multicast-set-interface-lo.js | 1 - test/parallel/test-buffer-from.js | 1 - test/parallel/test-buffer-over-max-length.js | 1 - 3 files changed, 3 deletions(-) diff --git a/test/internet/test-dgram-multicast-set-interface-lo.js b/test/internet/test-dgram-multicast-set-interface-lo.js index 740b175d69be8a..c869b87d8a7507 100644 --- a/test/internet/test-dgram-multicast-set-interface-lo.js +++ b/test/internet/test-dgram-multicast-set-interface-lo.js @@ -22,7 +22,6 @@ if (common.isSunOS) { } const networkInterfaces = require('os').networkInterfaces(); -const Buffer = require('buffer').Buffer; const fork = require('child_process').fork; const MULTICASTS = { IPv4: ['224.0.0.115', '224.0.0.116', '224.0.0.117'], diff --git a/test/parallel/test-buffer-from.js b/test/parallel/test-buffer-from.js index 7e1bac38245e85..e8a9196b3d9d8c 100644 --- a/test/parallel/test-buffer-from.js +++ b/test/parallel/test-buffer-from.js @@ -2,7 +2,6 @@ const common = require('../common'); const { deepStrictEqual, throws } = require('assert'); -const { Buffer } = require('buffer'); const { runInNewContext } = require('vm'); const checkString = 'test'; diff --git a/test/parallel/test-buffer-over-max-length.js b/test/parallel/test-buffer-over-max-length.js index 41d8defa094143..b1267b19ff439e 100644 --- a/test/parallel/test-buffer-over-max-length.js +++ b/test/parallel/test-buffer-over-max-length.js @@ -3,7 +3,6 @@ const common = require('../common'); const assert = require('assert'); const buffer = require('buffer'); -const Buffer = buffer.Buffer; const SlowBuffer = buffer.SlowBuffer; const kMaxLength = buffer.kMaxLength;