Skip to content

Commit fd562ef

Browse files
authored
test: replace forEach with for..of in test-http2-client-destroy.js
PR-URL: #49820 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 2e5ffe9 commit fd562ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http2-client-destroy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const { getEventListeners } = require('events');
2222
server.close();
2323
});
2424

25-
destroyCallbacks.forEach((destroyCallback) => {
25+
for (const destroyCallback of destroyCallbacks) {
2626
const client = h2.connect(`http://localhost:${server.address().port}`);
2727
client.on('connect', common.mustCall(() => {
2828
const socket = client[kSocket];
@@ -45,7 +45,7 @@ const { getEventListeners } = require('events');
4545

4646
countdown.dec();
4747
}));
48-
});
48+
}
4949
}));
5050
}
5151

0 commit comments

Comments
 (0)