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 <[email protected]>
  • Loading branch information
niyashiyas authored and targos committed Oct 23, 2023
1 parent af31d51 commit 2d8d6c5
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 2d8d6c5

Please sign in to comment.