(server: LoopbackServer)
| 74 | } |
| 75 | |
| 76 | function closeHttpConnections(server: LoopbackServer): void { |
| 77 | const maybeHttpServer = server as http.Server; |
| 78 | maybeHttpServer.closeAllConnections?.(); |
| 79 | maybeHttpServer.closeIdleConnections?.(); |
| 80 | } |
| 81 | |
| 82 | export function waitForHttpOk(url: string, timeoutMs: number): Promise<void> { |
| 83 | const deadline = Date.now() + timeoutMs; |
no outgoing calls
no test coverage detected