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 <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
SiddharthDevulapalli authored and ruyadorno committed Sep 28, 2023
1 parent ddf0e17 commit eded29c
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 eded29c

Please sign in to comment.