Skip to content

Commit

Permalink
test: replace forEach with for..of in test-http2-client-destroy.js
Browse files Browse the repository at this point in the history
PR-URL: #49820
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
niyashiyas authored and targos committed Nov 11, 2023
1 parent bf5b211 commit 8c15281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http2-client-destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const { getEventListeners } = require('events');
server.close();
});

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

countdown.dec();
}));
});
}
}));
}

Expand Down

0 comments on commit 8c15281

Please sign in to comment.