summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-localaddress-bind-error.js
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2015-05-19 13:00:06 +0200
committerRoman Reiss <me@silverwind.io>2015-05-19 21:21:27 +0200
commitf29762f4dd5811464684f820286f1c90a694bdff (patch)
tree67ba73a81c3938f41796dfa4c595f9713de59933 /test/parallel/test-http-localaddress-bind-error.js
parent85d99830096a48b7d50cc3b0e5c3fba4172c2d02 (diff)
downloadnode-new-f29762f4dd5811464684f820286f1c90a694bdff.tar.gz
test: enable linting for tests
Enable linting for the test directory. A number of changes was made so all tests conform the current rules used by lib and src directories. The only exception for tests is that unreachable (dead) code is allowed. test-fs-non-number-arguments-throw had to be excluded from the changes because of a weird issue on Windows CI. PR-URL: https://github.com/nodejs/io.js/pull/1721 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/parallel/test-http-localaddress-bind-error.js')
-rw-r--r--test/parallel/test-http-localaddress-bind-error.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-http-localaddress-bind-error.js b/test/parallel/test-http-localaddress-bind-error.js
index 9ee8c1d74f..80c7cab7c8 100644
--- a/test/parallel/test-http-localaddress-bind-error.js
+++ b/test/parallel/test-http-localaddress-bind-error.js
@@ -1,3 +1,4 @@
+'use strict';
var common = require('../common');
var assert = require('assert');
var http = require('http');
@@ -6,7 +7,7 @@ var invalidLocalAddress = '1.2.3.4';
var gotError = false;
var server = http.createServer(function(req, res) {
- console.log("Connect from: " + req.connection.remoteAddress);
+ console.log('Connect from: ' + req.connection.remoteAddress);
req.on('end', function() {
res.writeHead(200, { 'Content-Type': 'text/plain' });
@@ -15,7 +16,7 @@ var server = http.createServer(function(req, res) {
req.resume();
});
-server.listen(common.PORT, "127.0.0.1", function() {
+server.listen(common.PORT, '127.0.0.1', function() {
var req = http.request({
host: 'localhost',
port: common.PORT,