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 27, 2023
1 parent a2ca1a6 commit 128ca3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http2-client-destroy.js
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 128ca3e

Please sign in to comment.