Skip to content

Commit af31d51

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
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(constdestroyCallbackofdestroyCallbacks){
2626
constclient=h2.connect(`http://localhost:${server.address().port}`);
2727
client.on('connect',common.mustCall(()=>{
2828
constsocket=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)