summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2015-05-20 11:29:08 +0200
committerRoman Reiss <me@silverwind.io>2015-05-20 14:13:37 +0200
commit5773438913ffff104ae1f4907e35f925299090d3 (patch)
treed3020394ce513f0443a16bb4a911bc5d6a0a31ca /test
parent867631986f5cd8950caf706ee92fc2a8ee3d4c0f (diff)
downloadnodejs-5773438913ffff104ae1f4907e35f925299090d3.tar.gz
nodejs-5773438913ffff104ae1f4907e35f925299090d3.tar.bz2
nodejs-5773438913ffff104ae1f4907e35f925299090d3.zip
test: fix jslint error
PR-URL: https://github.com/nodejs/io.js/pull/1743 Fixes: https://github.com/nodejs/io.js/issues/1742 Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-sync-io-option.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-sync-io-option.js b/test/parallel/test-sync-io-option.js
index 2dc0bf4cc..be817c460 100644
--- a/test/parallel/test-sync-io-option.js
+++ b/test/parallel/test-sync-io-option.js
@@ -33,10 +33,11 @@ if (process.argv[2] === 'child') {
// Prints 4 WARNINGS for --trace-sync-io. 1 for each sync call
// inside readFileSync
assert.equal(cntr1, 4);
- } else if (execArgv[0] === ' ')
+ } else if (execArgv[0] === ' ') {
assert.equal(cntr1, 0);
- else
+ } else {
throw new Error('UNREACHABLE');
+ }
if (flags.length > 0)
setImmediate(runTest, flags);