mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: replace forEach with for..of in test-http2-client-destroy.js
PR-URL: https://github.com/nodejs/node/pull/49820 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
@@ -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];
|
||||
@@ -45,7 +45,7 @@ const { getEventListeners } = require('events');
|
||||
|
||||
countdown.dec();
|
||||
}));
|
||||
});
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user