From 147395566ffc323cadb7dd74874c15e646b5a2d5 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. Refs: https://github.com/nodejs/node/pull/22151 --- 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');