diff options
author | cjihrig <cjihrig@gmail.com> | 2016-12-30 10:54:01 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-01-02 09:48:52 -0500 |
commit | 746a46ebddf594370137042b9b3a0af80daff903 (patch) | |
tree | 3defd7922c80a984bd0422cf6bdcf4ab3dd81aa1 /test/parallel/test-fs-truncate.js | |
parent | 152bd82de9b49e0497a2fe267c1d04207d837f40 (diff) | |
download | android-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-truncate.js')
-rw-r--r-- | test/parallel/test-fs-truncate.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-fs-truncate.js b/test/parallel/test-fs-truncate.js index 1ba0db7f01..80c938b8d4 100644 --- a/test/parallel/test-fs-truncate.js +++ b/test/parallel/test-fs-truncate.js @@ -43,9 +43,9 @@ fs.closeSync(fd); // async tests testTruncate(common.mustCall(function(er) { - if (er) throw er; + assert.ifError(er); testFtruncate(common.mustCall(function(er) { - if (er) throw er; + assert.ifError(er); })); })); |