Skip to content
Prev Previous commit
Next Next commit
test: lint error correction
  • Loading branch information
clarenced committed Apr 17, 2017
commit ef6819c5464b1cad7d697f4cbb1d3a9a8879b575
2 changes: 1 addition & 1 deletion test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ exports.childShouldThrowAndAbort = function() {

exports.childShouldNotThrowAndAbort = () => {
let testCmd = '';
if(!exports.isWindows){
if (!exports.isWindows) {
testCmd += 'ulimit -c 0 && ';
}

Expand Down
5 changes: 2 additions & 3 deletions test/parallel/test-domain-abort-on-uncaught-0.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let nextTick = () => {
const nextTick = () => {
const d = domain.create();

d.once('error', (err) => {
Expand All @@ -21,7 +20,7 @@ let nextTick = () => {
d.run(() => {
process.nextTick(() => {
throw new Error('exceptional!');
})
});
});
};

Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-domain-abort-on-uncaught-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let test = () => {
const test = () => {
const d = domain.create();

d.once('error', (err) => {
Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-domain-abort-on-uncaught-10.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let test = () => {
const test = () => {
const d = domain.create();
const d2 = domain.create();

Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-domain-abort-on-uncaught-11.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let test = () => {
const test = () => {
const d = domain.create();
const d2 = domain.create();

Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-domain-abort-on-uncaught-12.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let test = () => {
const test = () => {
const d = domain.create();
const d2 = domain.create();

Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-domain-abort-on-uncaught-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let test = () => {
const test = () => {
const d = domain.create();

d.once('error', (err) => {
Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-domain-abort-on-uncaught-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let test = () => {
const test = () => {
const d = domain.create();

d.once('error', (err) => {
Expand Down
1 change: 0 additions & 1 deletion test/parallel/test-domain-abort-on-uncaught-4.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-domain-abort-on-uncaught-5.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let test = () => {
const test = () => {
const d = domain.create();

d.once('error', (err) => {
Expand Down
10 changes: 5 additions & 5 deletions test/parallel/test-domain-abort-on-uncaught-6.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');
const net = require('net');

let errorHandlerCalled = false;

let test = () => {
const test = () => {
const d = domain.create();

d.once('error', (err) => {
errorHandlerCalled = true;
});

d.run(function() {
const server = net.createServer(function(conn) {
const server = net.createServer((conn) => {
conn.pipe(conn);
});
server.listen(0, common.localhostIPv4, function() {
server.listen(0, common.localhostIPv4, () => {
const conn = net.connect(this.address().port, common.localhostIPv4);
conn.once('data', function() {
conn.once('data', () => {
throw new Error('ok');
});
conn.end('ok');
Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-domain-abort-on-uncaught-7.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let test = () => {
const test = () => {
const d = domain.create();
const d2 = domain.create();

Expand Down
21 changes: 10 additions & 11 deletions test/parallel/test-domain-abort-on-uncaught-8.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,22 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let test = () => {
const d = domain.create();
const d2 = domain.create();
const test = () => {
const d = domain.create();
const d2 = domain.create();

d2.on('error', function errorHandler() {
errorHandlerCalled = true;
});
d2.on('error', function errorHandler() {
errorHandlerCalled = true;
});

d.run(function() {
d2.run(function() {
throw new Error('boom!');
});
d.run(function() {
d2.run(function() {
throw new Error('boom!');
});
});
};


Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-domain-abort-on-uncaught-9.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
const common = require('../common');
const assert = require('assert');
const domain = require('domain');
const child_process = require('child_process');

let errorHandlerCalled = false;

let test = () => {
const test = () => {
const d = domain.create();
const d2 = domain.create();

Expand Down