From 712596fc45794dacf428a525081338546b0b8291 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Tue, 2 May 2017 20:30:12 +0300 Subject: 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 Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott Reviewed-By: Santiago Gimeno Reviewed-By: Refael Ackermann Reviewed-By: James M Snell --- test/parallel/test-fs-chmod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/parallel/test-fs-chmod.js') 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); })); })); -- cgit v1.2.1