summaryrefslogtreecommitdiff
path: root/test/sequential
diff options
context:
space:
mode:
Diffstat (limited to 'test/sequential')
-rw-r--r--test/sequential/test-benchmark-child-process.js2
-rw-r--r--test/sequential/test-benchmark-http.js2
-rw-r--r--test/sequential/test-benchmark-net.js2
-rw-r--r--test/sequential/test-child-process-execsync.js10
-rw-r--r--test/sequential/test-child-process-fork-getconnections.js2
-rw-r--r--test/sequential/test-fs-watch.js5
-rw-r--r--test/sequential/test-init.js2
-rw-r--r--test/sequential/test-net-listen-shared-ports.js2
-rw-r--r--test/sequential/test-stream2-stderr-sync.js2
9 files changed, 15 insertions, 14 deletions
diff --git a/test/sequential/test-benchmark-child-process.js b/test/sequential/test-benchmark-child-process.js
index 2314c89948..168f99445d 100644
--- a/test/sequential/test-benchmark-child-process.js
+++ b/test/sequential/test-benchmark-child-process.js
@@ -14,7 +14,7 @@ const child = fork(runjs, ['--set', 'dur=0',
'--set', 'params=1',
'--set', 'methodName=execSync',
'child_process'],
- {env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}});
+ { env: { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 } });
child.on('exit', (code, signal) => {
assert.strictEqual(code, 0);
assert.strictEqual(signal, null);
diff --git a/test/sequential/test-benchmark-http.js b/test/sequential/test-benchmark-http.js
index fb0c1390c5..b8d47fb898 100644
--- a/test/sequential/test-benchmark-http.js
+++ b/test/sequential/test-benchmark-http.js
@@ -32,7 +32,7 @@ const child = fork(runjs, ['--set', 'benchmarker=test-double',
'--set', 'n=1',
'--set', 'res=normal',
'http'],
- {env});
+ { env });
child.on('exit', (code, signal) => {
assert.strictEqual(code, 0);
assert.strictEqual(signal, null);
diff --git a/test/sequential/test-benchmark-net.js b/test/sequential/test-benchmark-net.js
index ef5f4fbb91..43f712701d 100644
--- a/test/sequential/test-benchmark-net.js
+++ b/test/sequential/test-benchmark-net.js
@@ -20,7 +20,7 @@ const child = fork(runjs,
'--set', 'len=1024',
'--set', 'type=buf',
'net'],
- {env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}});
+ { env: { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 } });
child.on('exit', (code, signal) => {
assert.strictEqual(code, 0);
assert.strictEqual(signal, null);
diff --git a/test/sequential/test-child-process-execsync.js b/test/sequential/test-child-process-execsync.js
index 4fb2915010..63046517a9 100644
--- a/test/sequential/test-child-process-execsync.js
+++ b/test/sequential/test-child-process-execsync.js
@@ -34,12 +34,12 @@ let caught = false;
// Verify that stderr is not accessed when a bad shell is used
assert.throws(
- function() { execSync('exit -1', {shell: 'bad_shell'}); },
+ function() { execSync('exit -1', { shell: 'bad_shell' }); },
/spawnSync bad_shell ENOENT/,
'execSync did not throw the expected exception!'
);
assert.throws(
- function() { execFileSync('exit -1', {shell: 'bad_shell'}); },
+ function() { execFileSync('exit -1', { shell: 'bad_shell' }); },
/spawnSync bad_shell ENOENT/,
'execFileSync did not throw the expected exception!'
);
@@ -47,7 +47,7 @@ assert.throws(
let cmd, ret;
try {
cmd = `"${process.execPath}" -e "setTimeout(function(){}, ${SLEEP});"`;
- ret = execSync(cmd, {timeout: TIMER});
+ ret = execSync(cmd, { timeout: TIMER });
} catch (e) {
caught = true;
assert.strictEqual(e.errno, 'ETIMEDOUT');
@@ -97,7 +97,7 @@ assert.strictEqual(ret, `${msg}\n`,
{
const cwd = common.rootDir;
const cmd = common.isWindows ? 'echo %cd%' : 'pwd';
- const response = execSync(cmd, {cwd});
+ const response = execSync(cmd, { cwd });
assert.strictEqual(response.toString().trim(), cwd);
}
@@ -105,7 +105,7 @@ assert.strictEqual(ret, `${msg}\n`,
// Verify that stderr is not accessed when stdio = 'ignore' - GH #7966
{
assert.throws(function() {
- execSync('exit -1', {stdio: 'ignore'});
+ execSync('exit -1', { stdio: 'ignore' });
}, /Command failed: exit -1/);
}
diff --git a/test/sequential/test-child-process-fork-getconnections.js b/test/sequential/test-child-process-fork-getconnections.js
index f9dda9ba1d..931763cf3c 100644
--- a/test/sequential/test-child-process-fork-getconnections.js
+++ b/test/sequential/test-child-process-fork-getconnections.js
@@ -31,7 +31,7 @@ if (process.argv[2] === 'child') {
process.on('message', function(m, socket) {
function sendClosed(id) {
- process.send({ id: id, status: 'closed'});
+ process.send({ id: id, status: 'closed' });
}
if (m.cmd === 'new') {
diff --git a/test/sequential/test-fs-watch.js b/test/sequential/test-fs-watch.js
index d7750582b0..a2b09b5419 100644
--- a/test/sequential/test-fs-watch.js
+++ b/test/sequential/test-fs-watch.js
@@ -122,7 +122,7 @@ setImmediate(function() {
// https://github.com/joyent/node/issues/2293 - non-persistent watcher should
// not block the event loop
-fs.watch(__filename, {persistent: false}, function() {
+fs.watch(__filename, { persistent: false }, function() {
assert(0);
});
@@ -138,7 +138,8 @@ assert.throws(function() {
oldhandle.close(); // clean up
assert.throws(function() {
- const w = fs.watchFile(__filename, {persistent: false}, common.mustNotCall());
+ const w = fs.watchFile(__filename, { persistent: false },
+ common.mustNotCall());
oldhandle = w._handle;
w._handle = { stop: w._handle.stop };
w.stop();
diff --git a/test/sequential/test-init.js b/test/sequential/test-init.js
index 2e6a23cd34..5ca0de7db3 100644
--- a/test/sequential/test-init.js
+++ b/test/sequential/test-init.js
@@ -33,7 +33,7 @@ process.env.TEST_INIT = 1;
function test(file, expected) {
const path = `"${process.execPath}" ${file}`;
- child.exec(path, {env: process.env}, common.mustCall((err, out) => {
+ child.exec(path, { env: process.env }, common.mustCall((err, out) => {
assert.ifError(err);
assert.strictEqual(out, expected, `'node ${file}' failed!`);
}));
diff --git a/test/sequential/test-net-listen-shared-ports.js b/test/sequential/test-net-listen-shared-ports.js
index 282380ad27..be33821bf6 100644
--- a/test/sequential/test-net-listen-shared-ports.js
+++ b/test/sequential/test-net-listen-shared-ports.js
@@ -57,7 +57,7 @@ if (cluster.isMaster) {
port: common.PORT,
exclusive: false
}, common.mustCall(function() {
- server2.listen({port: common.PORT + 1, exclusive: true},
+ server2.listen({ port: common.PORT + 1, exclusive: true },
common.mustCall(function() {
// the first worker should succeed
process.send('success');
diff --git a/test/sequential/test-stream2-stderr-sync.js b/test/sequential/test-stream2-stderr-sync.js
index c5295c0a2f..6eff05513f 100644
--- a/test/sequential/test-stream2-stderr-sync.js
+++ b/test/sequential/test-stream2-stderr-sync.js
@@ -67,7 +67,7 @@ function child2() {
const socket = new net.Socket({
fd: 2,
readable: false,
- writable: true});
+ writable: true });
socket.write('child 2\n');
socket.write('foo\n');
socket.write('bar\n');