summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-https-agent-disable-session-reuse.js1
-rw-r--r--test/parallel/test-https-agent-servername.js1
-rw-r--r--test/parallel/test-https-byteswritten.js1
-rw-r--r--test/parallel/test-https-eof-for-eom.js2
-rw-r--r--test/parallel/test-https-localaddress-bind-error.js2
-rw-r--r--test/parallel/test-https-socket-options.js2
-rw-r--r--test/parallel/test-https-strict.js2
-rw-r--r--test/parallel/test-https-timeout-server-2.js1
-rw-r--r--test/parallel/test-https-timeout-server.js1
-rw-r--r--test/parallel/test-https-timeout.js2
-rw-r--r--test/parallel/test-https-truncate.js1
11 files changed, 3 insertions, 13 deletions
diff --git a/test/parallel/test-https-agent-disable-session-reuse.js b/test/parallel/test-https-agent-disable-session-reuse.js
index 551f0150bf..a4f9517bd5 100644
--- a/test/parallel/test-https-agent-disable-session-reuse.js
+++ b/test/parallel/test-https-agent-disable-session-reuse.js
@@ -10,7 +10,6 @@ if (!common.hasCrypto) {
const TOTAL_REQS = 2;
const https = require('https');
-const crypto = require('crypto');
const fs = require('fs');
diff --git a/test/parallel/test-https-agent-servername.js b/test/parallel/test-https-agent-servername.js
index 2be40836a0..f7d5e5a40d 100644
--- a/test/parallel/test-https-agent-servername.js
+++ b/test/parallel/test-https-agent-servername.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');
diff --git a/test/parallel/test-https-byteswritten.js b/test/parallel/test-https-byteswritten.js
index 5163eccc26..beef89b25c 100644
--- a/test/parallel/test-https-byteswritten.js
+++ b/test/parallel/test-https-byteswritten.js
@@ -2,7 +2,6 @@
var common = require('../common');
var assert = require('assert');
var fs = require('fs');
-var http = require('http');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
diff --git a/test/parallel/test-https-eof-for-eom.js b/test/parallel/test-https-eof-for-eom.js
index 0445625bac..50d909373f 100644
--- a/test/parallel/test-https-eof-for-eom.js
+++ b/test/parallel/test-https-eof-for-eom.js
@@ -53,7 +53,7 @@ var bodyBuffer = '';
server.listen(common.PORT, function() {
console.log('1) Making Request');
- var req = https.get({
+ https.get({
port: common.PORT,
rejectUnauthorized: false
}, function(res) {
diff --git a/test/parallel/test-https-localaddress-bind-error.js b/test/parallel/test-https-localaddress-bind-error.js
index 66551a780a..f5bb1f84c3 100644
--- a/test/parallel/test-https-localaddress-bind-error.js
+++ b/test/parallel/test-https-localaddress-bind-error.js
@@ -28,7 +28,7 @@ var server = https.createServer(options, function(req, res) {
});
server.listen(common.PORT, '127.0.0.1', function() {
- var req = https.request({
+ https.request({
host: 'localhost',
port: common.PORT,
path: '/',
diff --git a/test/parallel/test-https-socket-options.js b/test/parallel/test-https-socket-options.js
index 44e179f27a..2adf8c798d 100644
--- a/test/parallel/test-https-socket-options.js
+++ b/test/parallel/test-https-socket-options.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');
@@ -9,7 +8,6 @@ if (!common.hasCrypto) {
var https = require('https');
var fs = require('fs');
-var exec = require('child_process').exec;
var http = require('http');
diff --git a/test/parallel/test-https-strict.js b/test/parallel/test-https-strict.js
index 65ebfabde2..04561959de 100644
--- a/test/parallel/test-https-strict.js
+++ b/test/parallel/test-https-strict.js
@@ -110,7 +110,7 @@ function makeReq(path, port, error, host, ca) {
path: path,
ca: ca
};
- var whichCa = 0;
+
if (!ca) {
options.agent = agent0;
} else {
diff --git a/test/parallel/test-https-timeout-server-2.js b/test/parallel/test-https-timeout-server-2.js
index df605958cf..a195ce1938 100644
--- a/test/parallel/test-https-timeout-server-2.js
+++ b/test/parallel/test-https-timeout-server-2.js
@@ -9,7 +9,6 @@ if (!common.hasCrypto) {
}
var https = require('https');
-var net = require('net');
var tls = require('tls');
var fs = require('fs');
diff --git a/test/parallel/test-https-timeout-server.js b/test/parallel/test-https-timeout-server.js
index ba175ecf76..f6d5d75a88 100644
--- a/test/parallel/test-https-timeout-server.js
+++ b/test/parallel/test-https-timeout-server.js
@@ -9,7 +9,6 @@ if (!common.hasCrypto) {
var https = require('https');
var net = require('net');
-var tls = require('tls');
var fs = require('fs');
var clientErrors = 0;
diff --git a/test/parallel/test-https-timeout.js b/test/parallel/test-https-timeout.js
index 7f34c18bec..2b41dadaec 100644
--- a/test/parallel/test-https-timeout.js
+++ b/test/parallel/test-https-timeout.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');
@@ -9,7 +8,6 @@ if (!common.hasCrypto) {
var https = require('https');
var fs = require('fs');
-var exec = require('child_process').exec;
var options = {
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
diff --git a/test/parallel/test-https-truncate.js b/test/parallel/test-https-truncate.js
index e77bf29ed2..83506c65d6 100644
--- a/test/parallel/test-https-truncate.js
+++ b/test/parallel/test-https-truncate.js
@@ -9,7 +9,6 @@ if (!common.hasCrypto) {
var https = require('https');
var fs = require('fs');
-var path = require('path');
var key = fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem');
var cert = fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem');