From d7e18478728470483a890817423db1afa471ffcc Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 8 Aug 2018 13:35:24 -0400 Subject: [PATCH] test: remove common.fileExists() test-trace-event-promises.js was added to the codebase between the last CI for https://github.com/nodejs/node/pull/22151 and it landing. PR-URL: https://github.com/nodejs/node/pull/22200 Refs: https://github.com/nodejs/node/pull/22151 Reviewed-By: Vse Mozhet Byt Reviewed-By: Benjamin Gruenbaum Reviewed-By: Jon Moss Reviewed-By: Trivikram Kamat Reviewed-By: Myles Borins Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Gus Caplan --- test/parallel/test-trace-event-promises.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-trace-event-promises.js b/test/parallel/test-trace-event-promises.js index 69d35f25ecb3bb..3088be52960095 100644 --- a/test/parallel/test-trace-event-promises.js +++ b/test/parallel/test-trace-event-promises.js @@ -33,7 +33,7 @@ if (process.argv[2] === 'child') { proc.once('exit', common.mustCall(() => { const file = path.join(tmpdir.path, 'node_trace.1.log'); - assert(common.fileExists(file)); + assert(fs.existsSync(file)); fs.readFile(file, common.mustCall((err, data) => { const traces = JSON.parse(data.toString()).traceEvents .filter((trace) => trace.cat !== '__metadata');