summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-link.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2016-12-30 10:54:01 -0500
committercjihrig <cjihrig@gmail.com>2017-01-02 09:48:52 -0500
commit746a46ebddf594370137042b9b3a0af80daff903 (patch)
tree3defd7922c80a984bd0422cf6bdcf4ab3dd81aa1 /test/parallel/test-fs-link.js
parent152bd82de9b49e0497a2fe267c1d04207d837f40 (diff)
downloadandroid-node-v8-746a46ebddf594370137042b9b3a0af80daff903.tar.gz
android-node-v8-746a46ebddf594370137042b9b3a0af80daff903.tar.bz2
android-node-v8-746a46ebddf594370137042b9b3a0af80daff903.zip
test: increase usage of assert.ifError()
PR-URL: https://github.com/nodejs/node/pull/10543 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-fs-link.js')
-rw-r--r--test/parallel/test-fs-link.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-fs-link.js b/test/parallel/test-fs-link.js
index 2cba47bfec..d110ff80fe 100644
--- a/test/parallel/test-fs-link.js
+++ b/test/parallel/test-fs-link.js
@@ -12,7 +12,7 @@ const dstPath = path.join(common.tmpDir, 'link1.js');
fs.writeFileSync(srcPath, 'hello world');
const callback = function(err) {
- if (err) throw err;
+ assert.ifError(err);
const dstContent = fs.readFileSync(dstPath, 'utf8');
assert.strictEqual('hello world', dstContent);
};