Skip to content

Commit 2fe511b

Browse files
test: replace forEach() in test-net-perf_hooks with for of
PR-URL: #49831 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Joe Sepi <sepi@joesepi.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 42c37f2 commit 2fe511b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-net-perf_hooks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ obs.observe({ type: 'net' });
4949

5050
process.on('exit', () => {
5151
assert.strictEqual(entries.length, 1);
52-
entries.forEach((entry) => {
52+
for (const entry of entries) {
5353
assert.strictEqual(entry.name, 'connect');
5454
assert.strictEqual(entry.entryType, 'net');
5555
assert.strictEqual(typeof entry.startTime, 'number');
5656
assert.strictEqual(typeof entry.duration, 'number');
5757
assert.strictEqual(!!entry.detail.host, true);
5858
assert.strictEqual(!!entry.detail.port, true);
59-
});
59+
}
6060
});

0 commit comments

Comments
 (0)