test: use mustSucceed instead of mustCall

PR-URL: https://github.com/nodejs/node/pull/49788
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
SiddharthDevulapalli 2023-09-25 07:24:14 -05:00 committed by GitHub
parent 3922d181b8
commit 1716769115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) => {