Skip to content

Commit 75ee784

Browse files
SociableSteveUlisesGascon
authored andcommitted
test: replace forEach() with for ... of in test-tls-getprotocol.js
PR-URL: #50600 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent f808e7a commit 75ee784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-tls-getprotocol.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const serverConfig = {
3535
const server = tls.createServer(serverConfig, common.mustCall(clientConfigs.length))
3636
.listen(0, common.localhostIPv4, function() {
3737
let connected = 0;
38-
clientConfigs.forEach(function(v) {
38+
for (const v of clientConfigs) {
3939
tls.connect({
4040
host: common.localhostIPv4,
4141
port: server.address().port,
@@ -51,5 +51,5 @@ const server = tls.createServer(serverConfig, common.mustCall(clientConfigs.leng
5151
if (++connected === clientConfigs.length)
5252
server.close();
5353
}));
54-
});
54+
}
5555
});

0 commit comments

Comments
 (0)