Files
doona/tools/close-servers.mjs
T
Zakk f895d23c4f chore: remove dead code found in the tree audit
- drop memberCountText and the group.groupCount and group.mixedCount strings
- drop the unused RecorderMode alias
- inline PolicyPicker into GroupDialog and useModules into Modules
- merge the identical Beeswarm text rules and the .rp-g21/.rp-g3 base grid
- share the server close helper between the conformance and fetch-honk tests
- drop useNodeGrid.disabledKeys and the unused GroupDialog id prop
2026-10-03 19:19:52 +10:00

13 lines
370 B
JavaScript

// Closes the HTTP servers a test started and empties the list; a failed close rejects.
export function closeServers(servers) {
return Promise.all(
servers.splice(0).map(
server =>
new Promise((resolve, reject) => {
server.close(error => (error ? reject(error) : resolve()));
server.closeAllConnections();
})
)
);
}