Browse Source

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: https://github.com/nodejs/node/pull/4424
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
process-exit-stdio-flushing
Rich Trott 9 years ago
parent
commit
3d23567622
  1. 1
      test/parallel/test-tls-0-dns-altname.js
  2. 1
      test/parallel/test-tls-async-cb-after-socket-end.js
  3. 2
      test/parallel/test-tls-client-default-ciphers.js
  4. 1
      test/parallel/test-tls-close-error.js
  5. 1
      test/parallel/test-tls-close-notify.js
  6. 1
      test/parallel/test-tls-connect-secure-context.js
  7. 1
      test/parallel/test-tls-destroy-whilst-write.js
  8. 2
      test/parallel/test-tls-fast-writing.js
  9. 1
      test/parallel/test-tls-handshake-error.js
  10. 1
      test/parallel/test-tls-handshake-nohang.js
  11. 1
      test/parallel/test-tls-invoke-queued.js
  12. 2
      test/parallel/test-tls-key-mismatch.js
  13. 4
      test/parallel/test-tls-legacy-onselect.js
  14. 1
      test/parallel/test-tls-max-send-fragment.js
  15. 1
      test/parallel/test-tls-ocsp-callback.js
  16. 1
      test/parallel/test-tls-peer-certificate-encoding.js
  17. 1
      test/parallel/test-tls-peer-certificate-multi-keys.js
  18. 1
      test/parallel/test-tls-peer-certificate.js
  19. 2
      test/parallel/test-tls-request-timeout.js
  20. 1
      test/parallel/test-tls-socket-default-options.js
  21. 1
      test/parallel/test-tls-ticket-cluster.js

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

@ -9,7 +9,6 @@ if (!common.hasCrypto) {
var tls = require('tls');
var fs = require('fs');
var net = require('net');
var common = require('../common');

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

@ -2,7 +2,6 @@
var common = require('../common');
var assert = require('assert');
var path = require('path');
var fs = require('fs');
var constants = require('constants');

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

@ -19,7 +19,7 @@ function test1() {
};
try {
var s = tls.connect(common.PORT);
tls.connect(common.PORT);
} catch (e) {
assert(e instanceof Done);
}

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

@ -10,7 +10,6 @@ if (!common.hasCrypto) {
var tls = require('tls');
var fs = require('fs');
var net = require('net');
var errorCount = 0;
var closeCount = 0;

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

@ -9,7 +9,6 @@ if (!common.hasCrypto) {
var tls = require('tls');
var fs = require('fs');
var net = require('net');
var ended = 0;

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

@ -1,6 +1,5 @@
'use strict';
const common = require('../common');
const assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');

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

@ -1,5 +1,4 @@
'use strict';
var assert = require('assert');
var common = require('../common');
if (!common.hasCrypto) {

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

@ -20,7 +20,7 @@ var server = tls.createServer(options, onconnection);
var gotChunk = false;
var gotDrain = false;
var timer = setTimeout(function() {
setTimeout(function() {
console.log('not ok - timed out');
process.exit(1);
}, common.platformTimeout(500));

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

@ -10,7 +10,6 @@ if (!common.hasCrypto) {
var tls = require('tls');
var fs = require('fs');
var net = require('net');
var errorCount = 0;
var closeCount = 0;

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

@ -1,6 +1,5 @@
'use strict';
var common = require('../common');
var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');

1
test/parallel/test-tls-invoke-queued.js

@ -9,7 +9,6 @@ if (!common.hasCrypto) {
var tls = require('tls');
var fs = require('fs');
var net = require('net');
var received = '';

2
test/parallel/test-tls-key-mismatch.js

@ -14,8 +14,6 @@ var options = {
cert: fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem')
};
var cert = null;
assert.throws(function() {
tls.createSecureContext(options);
});

4
test/parallel/test-tls-legacy-onselect.js

@ -17,10 +17,6 @@ function filenamePEM(n) {
return require('path').join(common.fixturesDir, 'keys', n + '.pem');
}
function loadPEM(n) {
return fs.readFileSync(filenamePEM(n));
}
var server = net.Server(function(raw) {
var pair = tls.createSecurePair(null, true, false, false);
pair.on('error', function() {});

1
test/parallel/test-tls-max-send-fragment.js

@ -9,7 +9,6 @@ if (!common.hasCrypto) {
var tls = require('tls');
var fs = require('fs');
var net = require('net');
var common = require('../common');

1
test/parallel/test-tls-ocsp-callback.js

@ -41,7 +41,6 @@ function test(testOptions, cb) {
var clientSecure = 0;
var ocspCount = 0;
var ocspResponse;
var session;
if (testOptions.pfx) {
delete options.key;

1
test/parallel/test-tls-peer-certificate-encoding.js

@ -11,7 +11,6 @@ var tls = require('tls');
var fs = require('fs');
var util = require('util');
var join = require('path').join;
var spawn = require('child_process').spawn;
var options = {
key: fs.readFileSync(join(common.fixturesDir, 'keys', 'agent5-key.pem')),

1
test/parallel/test-tls-peer-certificate-multi-keys.js

@ -11,7 +11,6 @@ var tls = require('tls');
var fs = require('fs');
var util = require('util');
var join = require('path').join;
var spawn = require('child_process').spawn;
var options = {
key: fs.readFileSync(join(common.fixturesDir, 'agent.key')),

1
test/parallel/test-tls-peer-certificate.js

@ -11,7 +11,6 @@ var tls = require('tls');
var fs = require('fs');
var util = require('util');
var join = require('path').join;
var spawn = require('child_process').spawn;
var options = {
key: fs.readFileSync(join(common.fixturesDir, 'keys', 'agent1-key.pem')),

2
test/parallel/test-tls-request-timeout.js

@ -29,7 +29,7 @@ var server = tls.Server(options, function(socket) {
});
server.listen(common.PORT, function() {
var socket = tls.connect({
tls.connect({
port: common.PORT,
rejectUnauthorized: false
});

1
test/parallel/test-tls-socket-default-options.js

@ -9,7 +9,6 @@ if (!common.hasCrypto) {
const tls = require('tls');
const fs = require('fs');
const net = require('net');
const sent = 'hello world';

1
test/parallel/test-tls-ticket-cluster.js

@ -42,7 +42,6 @@ if (cluster.isMaster) {
function fork() {
var worker = cluster.fork();
var workerReqCount = 0;
worker.on('message', function(msg) {
console.error('[master] got %j', msg);
if (msg === 'reused') {

Loading…
Cancel
Save