summaryrefslogtreecommitdiff
path: root/test/parallel
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-05-02 20:30:12 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-05-04 21:18:06 +0300
commit712596fc45794dacf428a525081338546b0b8291 (patch)
tree72731d4a7edaa155162c7cc9cc7a69f206f43adf /test/parallel
parentf971916885a6df05f0c7b327f875cd2d6bf4d18b (diff)
downloadnode-new-712596fc45794dacf428a525081338546b0b8291.tar.gz
test: add callback to fs.close() in test-fs-chmod
To avoid '[DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.' PR-URL: https://github.com/nodejs/node/pull/12795 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel')
-rw-r--r--test/parallel/test-fs-chmod.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-fs-chmod.js b/test/parallel/test-fs-chmod.js
index e26ab16f90..de48b096c6 100644
--- a/test/parallel/test-fs-chmod.js
+++ b/test/parallel/test-fs-chmod.js
@@ -114,7 +114,7 @@ fs.open(file2, 'a', common.mustCall((err, fd) => {
assert.strictEqual(mode_sync, fs.fstatSync(fd).mode & 0o777);
}
- fs.close(fd);
+ fs.close(fd, assert.ifError);
}));
}));