From eded29c5221f6432b053ea2ea3409b482b7190ee Mon Sep 17 00:00:00 2001 From: SiddharthDevulapalli <113269891+SiddharthDevulapalli@users.noreply.github.com> Date: Mon, 25 Sep 2023 07:24:14 -0500 Subject: [PATCH] test: use mustSucceed instead of mustCall MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/49788 Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat --- test/parallel/test-trace-events-bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {