Skip to content

Commit f885dfe

Browse files
chandrakhishmaUlisesGascon
authored andcommitted
test: replace forEach() with for...of in test-trace-events-http
PR-URL: #49795 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 9dc63c5 commit f885dfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-trace-events-http.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ proc.once('exit', common.mustCall(() => {
3131
const traces = JSON.parse(data.toString()).traceEvents;
3232
assert(traces.length > 0);
3333
let count = 0;
34-
traces.forEach((trace) => {
34+
for (const trace of traces) {
3535
if (trace.cat === 'node,node.http' &&
3636
['http.server.request', 'http.client.request'].includes(trace.name)) {
3737
count++;
3838
}
39-
});
39+
}
4040
// Two begin, two end
4141
assert.strictEqual(count, 4);
4242
}));

0 commit comments

Comments
 (0)