Skip to content

Commit

Permalink
test: replace forEach with for..of in test-http2-server
Browse files Browse the repository at this point in the history
PR-URL: #49819
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
niyashiyas authored and lpinca committed Oct 21, 2023
1 parent fd562ef commit 63e9d02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http2-server-shutdown-options-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const types = [
server.on('stream', common.mustCall((stream) => {
const session = stream.session;

types.forEach((input) => {
for (const input of types) {
const received = common.invalidArgTypeHelper(input);
assert.throws(
() => session.goaway(input),
Expand Down Expand Up @@ -48,7 +48,7 @@ server.on('stream', common.mustCall((stream) => {
`TypedArray, or DataView.${received}`
}
);
});
}

stream.session.destroy();
}));
Expand Down

0 comments on commit 63e9d02

Please sign in to comment.