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 targos committed Nov 11, 2023
1 parent 8c15281 commit 0134af3
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 0134af3

Please sign in to comment.