Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f183770

Browse filesBrowse files
TrottMyles Borins
authored andcommitted
test: remove unused vars from parallel tests
Remove all remaining unused variables from tests in test/parallel. PR-URL: #4511 Reviewed-By: James M Snell<jasnell@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
1 parent b4964b0 commit f183770
Copy full SHA for f183770

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

46 files changed

+20
-83
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-assert-typedarray-deepequal.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-assert-typedarray-deepequal.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const common = require('../common');
3+
require('../common');
44
const assert = require('assert');
55
const a = require('assert');
66

Collapse file

‎test/parallel/test-buffer-fakes.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-buffer-fakes.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require('../common');
44
const assert = require('assert');
55
const Buffer = require('buffer').Buffer;
6-
const Bp = Buffer.prototype;
76

87
function FakeBuffer() { }
98
FakeBuffer.__proto__ = Buffer;
Collapse file

‎test/parallel/test-child-process-exec-buffer.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-child-process-exec-buffer.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exec('echo ' + str, function(err, stdout, stderr) {
1818
});
1919

2020
// no encoding (Buffers expected)
21-
var child = exec('echo ' + str, {
21+
exec('echo ' + str, {
2222
encoding: null
2323
}, function(err, stdout, stderr) {
2424
assert.ok(stdout instanceof Buffer, 'Expected stdout to be a Buffer');
Collapse file

‎test/parallel/test-cluster-http-pipe.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cluster-http-pipe.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ http.createServer(function(req, res) {
3434
res.writeHead(200);
3535
res.end('OK');
3636
}).listen(common.PIPE, function() {
37-
var self = this;
3837
http.get({ socketPath: common.PIPE, path: '/' }, function(res) {
3938
res.resume();
4039
res.on('end', function(err) {
Collapse file

‎test/parallel/test-crypto-binary-default.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-binary-default.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ var fs = require('fs');
2020
var path = require('path');
2121

2222
// Test Certificates
23-
var caPem = fs.readFileSync(common.fixturesDir + '/test_ca.pem', 'ascii');
2423
var certPem = fs.readFileSync(common.fixturesDir + '/test_cert.pem', 'ascii');
2524
var certPfx = fs.readFileSync(common.fixturesDir + '/test_cert.pfx');
2625
var keyPem = fs.readFileSync(common.fixturesDir + '/test_key.pem', 'ascii');
Collapse file

‎test/parallel/test-crypto-dh.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-dh.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ var ecdh3 = crypto.createECDH('secp256k1');
171171
var key3 = ecdh3.generateKeys();
172172

173173
assert.throws(function() {
174-
var secret3 = ecdh2.computeSecret(key3, 'binary', 'buffer');
174+
ecdh2.computeSecret(key3, 'binary', 'buffer');
175175
});
176176

177177
// ECDH should allow .setPrivateKey()/.setPublicKey()
Collapse file

‎test/parallel/test-debug-signal-cluster.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-debug-signal-cluster.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ var options = { stdio: ['inherit', 'inherit', 'pipe', 'ipc'] };
1010
var child = spawn(process.execPath, args, options);
1111

1212
var outputLines = [];
13-
var outputTimerId;
1413
var waitingForDebuggers = false;
1514

1615
var pids = null;
Collapse file

‎test/parallel/test-dgram-error-message-address.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-dgram-error-message-address.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ socket_ipv4.bind(common.PORT, '1.1.1.1');
2020

2121
// IPv6 Test
2222
var socket_ipv6 = dgram.createSocket('udp6');
23-
var family_ipv6 = 'IPv6';
2423

2524
socket_ipv6.on('listening', common.fail);
2625

Collapse file

‎test/parallel/test-dgram-pingpong.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-dgram-pingpong.js
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ function pingPongTest(port, host) {
1111
var callbacks = 0;
1212
var N = 500;
1313
var count = 0;
14-
var sent_final_ping = false;
1514

1615
var server = dgram.createSocket('udp4', function(msg, rinfo) {
1716
if (debug) console.log('server got: ' + msg +
@@ -48,7 +47,6 @@ function pingPongTest(port, host) {
4847
if (count < N) {
4948
client.send(buf, 0, buf.length, port, 'localhost');
5049
} else {
51-
sent_final_ping = true;
5250
client.send(buf, 0, buf.length, port, 'localhost', function() {
5351
client.close();
5452
});
Collapse file

‎test/parallel/test-domain-http-server.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-domain-http-server.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ objects.baz.asdf = objects;
99

1010
var serverCaught = 0;
1111
var clientCaught = 0;
12-
var disposeEmit = 0;
1312

1413
var server = http.createServer(function(req, res) {
1514
var dom = domain.create();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.