We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dc63c5 commit f885dfeCopy full SHA for f885dfe
1 file changed
test/parallel/test-trace-events-http.js
@@ -31,12 +31,12 @@ proc.once('exit', common.mustCall(() => {
31
const traces = JSON.parse(data.toString()).traceEvents;
32
assert(traces.length > 0);
33
let count = 0;
34
- traces.forEach((trace) => {
+ for (const trace of traces) {
35
if (trace.cat === 'node,node.http' &&
36
['http.server.request', 'http.client.request'].includes(trace.name)) {
37
count++;
38
}
39
- });
+ }
40
// Two begin, two end
41
assert.strictEqual(count, 4);
42
}));
0 commit comments