summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRichard Lau <riclau@uk.ibm.com>2018-08-08 13:35:24 -0400
committerMyles Borins <mylesborins@google.com>2018-08-08 15:39:16 -0400
commitd7e18478728470483a890817423db1afa471ffcc (patch)
tree86eeb1d7a5f736f7d7872aed67b5371b4bdebdbd /test
parent77ac9628b3ccfadb7775625d15160cd6bf90d08e (diff)
downloadandroid-node-v8-d7e18478728470483a890817423db1afa471ffcc.tar.gz
android-node-v8-d7e18478728470483a890817423db1afa471ffcc.tar.bz2
android-node-v8-d7e18478728470483a890817423db1afa471ffcc.zip
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>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-trace-event-promises.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-trace-event-promises.js b/test/parallel/test-trace-event-promises.js
index 69d35f25ec..3088be5296 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');