diff --git a/test/.eslintrc b/test/.eslintrc index 608c62dff5fa63..2a8f61cb35f6be 100644 --- a/test/.eslintrc +++ b/test/.eslintrc @@ -1,8 +1,6 @@ ## Test-specific linter rules rules: - ## allow unreachable code - no-unreachable: 0 ## allow undeclared variables no-undef: 0 ## allow global Buffer usage diff --git a/test/message/throw_custom_error.js b/test/message/throw_custom_error.js index 270b37d14ddead..bb5dae05a9b03a 100644 --- a/test/message/throw_custom_error.js +++ b/test/message/throw_custom_error.js @@ -2,9 +2,5 @@ var common = require('../common'); var assert = require('assert'); -console.error('before'); - // custom error throwing throw ({ name: 'MyCustomError', message: 'This is a custom message' }); - -console.error('after'); diff --git a/test/message/throw_custom_error.out b/test/message/throw_custom_error.out index bfb928d48dd08e..ef73c52c889dff 100644 --- a/test/message/throw_custom_error.out +++ b/test/message/throw_custom_error.out @@ -1,5 +1,4 @@ -before -*test*message*throw_custom_error.js:8 +*test*message*throw_custom_error.js:6 throw ({ name: 'MyCustomError', message: 'This is a custom message' }); ^ MyCustomError: This is a custom message diff --git a/test/message/throw_non_error.js b/test/message/throw_non_error.js index 33e0a051d65a1d..a1046b725e93a4 100644 --- a/test/message/throw_non_error.js +++ b/test/message/throw_non_error.js @@ -2,9 +2,5 @@ var common = require('../common'); var assert = require('assert'); -console.error('before'); - // custom error throwing throw ({ foo: 'bar' }); - -console.error('after'); diff --git a/test/message/throw_non_error.out b/test/message/throw_non_error.out index c859d5f16a511e..15f95fcc11699a 100644 --- a/test/message/throw_non_error.out +++ b/test/message/throw_non_error.out @@ -1,5 +1,4 @@ -before -*test*message*throw_non_error.js:8 +*test*message*throw_non_error.js:6 throw ({ foo: 'bar' }); ^ [object Object] diff --git a/test/parallel/test-domain.js b/test/parallel/test-domain.js index cca01572123a45..918e3288e8dc91 100644 --- a/test/parallel/test-domain.js +++ b/test/parallel/test-domain.js @@ -163,7 +163,6 @@ expectCaught++; // as a callback instead. function fn(er) { throw new Error('This function should never be called!'); - process.exit(1); } var bound = d.intercept(fn); diff --git a/test/parallel/test-file-write-stream.js b/test/parallel/test-file-write-stream.js index 7309a6bf9db4d3..36ef283528b7c1 100644 --- a/test/parallel/test-file-write-stream.js +++ b/test/parallel/test-file-write-stream.js @@ -26,7 +26,6 @@ file }) .on('error', function(err) { throw err; - console.error('error!', err.stack); }) .on('drain', function() { console.error('drain!', callbacks.drain); diff --git a/test/parallel/test-http-content-length.js b/test/parallel/test-http-content-length.js index 6c9576cdabf563..ec60396a24545d 100644 --- a/test/parallel/test-http-content-length.js +++ b/test/parallel/test-http-content-length.js @@ -40,7 +40,6 @@ var server = http.createServer(function(req, res) { break; default: throw new Error('Unreachable'); - break; } receivedRequests++; diff --git a/test/parallel/test-listen-fd-detached-inherit.js b/test/parallel/test-listen-fd-detached-inherit.js index 7d4df0c1aec106..472b1e8ff939f0 100644 --- a/test/parallel/test-listen-fd-detached-inherit.js +++ b/test/parallel/test-listen-fd-detached-inherit.js @@ -64,8 +64,8 @@ function test() { // Then output the child's pid, and immediately exit. function parent() { var server = net.createServer(function(conn) { - throw new Error('Should not see connections on parent'); conn.end('HTTP/1.1 403 Forbidden\r\n\r\nI got problems.\r\n'); + throw new Error('Should not see connections on parent'); }).listen(PORT, function() { console.error('server listening on %d', PORT);