Skip to content

Commit 76cdaec

Browse files
swinston1000addaleax
authored andcommitted
test: remove unnecessary Buffer import
Removed require('buffer') from - test/disabled/test-sendfd.js - test/internet/test-dgram-broadcast-multi-process.js - test/pummel/test-https-no-reader.js PR-URL: #13860 Refs: #13836 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent 26f85e7 commit 76cdaec

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

‎test/disabled/test-sendfd.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
constcommon=require('../common');
5151
constassert=require('assert');
5252

53-
constbuffer=require('buffer');
5453
constchild_process=require('child_process');
5554
constfs=require('fs');
5655
constnet=require('net');
@@ -112,7 +111,7 @@ var srv = net.createServer(function(s){
112111
varstr=JSON.stringify(DATA)+'\n';
113112

114113
DATA.ord=DATA.ord+1;
115-
varbuf=buffer.Buffer.allocUnsafe(str.length);
114+
varbuf=Buffer.allocUnsafe(str.length);
116115
buf.write(JSON.stringify(DATA)+'\n','utf8');
117116

118117
s.write(str,'utf8',pipeFDs[1]);

‎test/internet/test-dgram-broadcast-multi-process.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const assert = require('assert');
2525
constdgram=require('dgram');
2626
constutil=require('util');
2727
constnetworkInterfaces=require('os').networkInterfaces();
28-
constBuffer=require('buffer').Buffer;
2928
constfork=require('child_process').fork;
3029
constLOCAL_BROADCAST_HOST='255.255.255.255';
3130
constTIMEOUT=common.platformTimeout(5000);

‎test/pummel/test-https-no-reader.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ if (!common.hasCrypto){
2929
}
3030
consthttps=require('https');
3131

32-
constBuffer=require('buffer').Buffer;
3332
constfs=require('fs');
3433
constpath=require('path');
3534

0 commit comments

Comments
(0)