From 051ea50a84195715919c5c0ffbc9e992eb49eeaf Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 13 May 2018 17:24:33 +0200 Subject: [PATCH] fixup! test: better error message in trace events test --- test/parallel/test-trace-events-async-hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-trace-events-async-hooks.js b/test/parallel/test-trace-events-async-hooks.js index eea5aa486c6b0d..e0b5e0625bea6f 100644 --- a/test/parallel/test-trace-events-async-hooks.js +++ b/test/parallel/test-trace-events-async-hooks.js @@ -59,7 +59,7 @@ proc.once('exit', common.mustCall(() => { const initEvents = traces.filter((trace) => { return (trace.ph === 'b' && !trace.name.includes('_CALLBACK')); }); - assert(initEvents.every((trace) => { + assert.ok(initEvents.every((trace) => { return (trace.args.executionAsyncId > 0 && trace.args.triggerAsyncId > 0); }), `Unexpected initEvents format: ${util.inspect(initEvents)}`);