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 <vsemozhetbyt@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
This commit is contained in:
Richard Lau 2018-08-08 13:35:24 -04:00 committed by Myles Borins
parent 77ac9628b3
commit d7e1847872
No known key found for this signature in database
GPG Key ID: 933B01F40B5CA946

View File

@ -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');