mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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:
parent
3922d181b8
commit
1716769115
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user