mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-06 00:00:57 +00:00
- 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
13 lines
370 B
JavaScript
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();
|
|
})
|
|
)
|
|
);
|
|
}
|