Skip to content

Commit 585c01f

Browse files
TrottFishrock123
authored andcommitted
test: remove unused variables from TLS tests
Some of the TLS tests have variables that do not get used. This removes those variables. PR-URL: nodejs#4424 Reviewed-By: Johan Bergström <[email protected]>
1 parent c36ca37 commit 585c01f

21 files changed

+3
-25
lines changed

test/parallel/test-tls-0-dns-altname.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ if (!common.hasCrypto) {
99
var tls = require('tls');
1010

1111
var fs = require('fs');
12-
var net = require('net');
1312

1413
var common = require('../common');
1514

test/parallel/test-tls-async-cb-after-socket-end.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
var common = require('../common');
44

5-
var assert = require('assert');
65
var path = require('path');
76
var fs = require('fs');
87
var constants = require('constants');

test/parallel/test-tls-client-default-ciphers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function test1() {
1919
};
2020

2121
try {
22-
var s = tls.connect(common.PORT);
22+
tls.connect(common.PORT);
2323
} catch (e) {
2424
assert(e instanceof Done);
2525
}

test/parallel/test-tls-close-error.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ if (!common.hasCrypto) {
1010
var tls = require('tls');
1111

1212
var fs = require('fs');
13-
var net = require('net');
1413

1514
var errorCount = 0;
1615
var closeCount = 0;

test/parallel/test-tls-close-notify.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ if (!common.hasCrypto) {
99
var tls = require('tls');
1010

1111
var fs = require('fs');
12-
var net = require('net');
1312

1413
var ended = 0;
1514

test/parallel/test-tls-connect-secure-context.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22
const common = require('../common');
3-
const assert = require('assert');
43

54
if (!common.hasCrypto) {
65
console.log('1..0 # Skipped: missing crypto');

test/parallel/test-tls-destroy-whilst-write.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
'use strict';
2-
var assert = require('assert');
32
var common = require('../common');
43

54
if (!common.hasCrypto) {

test/parallel/test-tls-fast-writing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var server = tls.createServer(options, onconnection);
2020
var gotChunk = false;
2121
var gotDrain = false;
2222

23-
var timer = setTimeout(function() {
23+
setTimeout(function() {
2424
console.log('not ok - timed out');
2525
process.exit(1);
2626
}, common.platformTimeout(500));

test/parallel/test-tls-handshake-error.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ if (!common.hasCrypto) {
1010
var tls = require('tls');
1111

1212
var fs = require('fs');
13-
var net = require('net');
1413

1514
var errorCount = 0;
1615
var closeCount = 0;

test/parallel/test-tls-handshake-nohang.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22
var common = require('../common');
3-
var assert = require('assert');
43

54
if (!common.hasCrypto) {
65
console.log('1..0 # Skipped: missing crypto');

0 commit comments

Comments
 (0)