Skip to content

Commit

Permalink
test: use mustSucceed instead of mustCall
Browse files Browse the repository at this point in the history
PR-URL: #49788
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
SiddharthDevulapalli authored and ruyadorno committed Sep 28, 2023
1 parent f67433f commit 5ad0042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-trace-events-bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 5ad0042

Please sign in to comment.