From 521f51ac1c3485b07dad5db7e6c28151b9acf8ee Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 9 Jan 2016 21:12:15 -0800 Subject: [PATCH] test: only include http module once MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A few tests in test/gc include the http module twice. Remove duplicate require(). PR-URL: https://github.com/nodejs/node/pull/4606 Reviewed-By: Brian White Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/gc/test-http-client-connaborted.js | 1 - test/gc/test-http-client-onerror.js | 1 - test/gc/test-http-client-timeout.js | 1 - test/gc/test-http-client.js | 1 - 4 files changed, 4 deletions(-) diff --git a/test/gc/test-http-client-connaborted.js b/test/gc/test-http-client-connaborted.js index 20a4b38481ae0c..6d8dd02a525a2f 100644 --- a/test/gc/test-http-client-connaborted.js +++ b/test/gc/test-http-client-connaborted.js @@ -18,7 +18,6 @@ var http = require('http'), console.log('We should do ' + todo + ' requests'); -var http = require('http'); var server = http.createServer(serverHandler); server.listen(PORT, getall); diff --git a/test/gc/test-http-client-onerror.js b/test/gc/test-http-client-onerror.js index 7e50683c6633e5..f28ccb2946605b 100644 --- a/test/gc/test-http-client-onerror.js +++ b/test/gc/test-http-client-onerror.js @@ -20,7 +20,6 @@ var http = require('http'), console.log('We should do ' + todo + ' requests'); -var http = require('http'); var server = http.createServer(serverHandler); server.listen(PORT, runTest); diff --git a/test/gc/test-http-client-timeout.js b/test/gc/test-http-client-timeout.js index c84581b5c8e54a..219dc3fa5035c3 100644 --- a/test/gc/test-http-client-timeout.js +++ b/test/gc/test-http-client-timeout.js @@ -22,7 +22,6 @@ var http = require('http'), console.log('We should do ' + todo + ' requests'); -var http = require('http'); var server = http.createServer(serverHandler); server.listen(PORT, getall); diff --git a/test/gc/test-http-client.js b/test/gc/test-http-client.js index 7c3259d38b0ba1..06648473c0b407 100644 --- a/test/gc/test-http-client.js +++ b/test/gc/test-http-client.js @@ -18,7 +18,6 @@ var http = require('http'), console.log('We should do ' + todo + ' requests'); -var http = require('http'); var server = http.createServer(serverHandler); server.listen(PORT, getall);