diff --git a/test/parallel/test-trace-events-bootstrap.js b/test/parallel/test-trace-events-bootstrap.js index 9497bd896e7bd6..0ad9c33800d799 100644 --- a/test/parallel/test-trace-events-bootstrap.js +++ b/test/parallel/test-trace-events-bootstrap.js @@ -32,7 +32,7 @@ if (process.argv[2] === 'child') { const file = tmpdir.resolve('node_trace.1.log'); assert(fs.existsSync(file)); - fs.readFile(file, common.mustCall((err, data) => { + fs.readFile(file, common.mustSucceed((data) => { const traces = JSON.parse(data.toString()).traceEvents .filter((trace) => trace.cat !== '__metadata'); traces.forEach((trace) => {