We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5de030 commit 2ceee6dCopy full SHA for 2ceee6d
lib/testutil.js
@@ -149,5 +149,8 @@ exports.teardownServers = function (callback) {
149
};
150
for (var i = servers.length - 1; i >= 0; i--) {
151
servers[i].close(onclose);
152
+ // closeAllConnections is implied in close in node >=19
153
+ // but this avoids waits between all tests with node 18
154
+ servers[i].closeAllConnections();
155
}
156
0 commit comments