Function
fakeGateway
(
listen: (host: string, port: number) => Promise<string>,
)
Source from the content-addressed store, hash-verified
| 109 | } |
| 110 | |
| 111 | function fakeGateway( |
| 112 | listen: (host: string, port: number) => Promise<string>, |
| 113 | ): Parameters<typeof listenWithPortRetry>[0]['gateway'] { |
| 114 | return { _serviceBrand: undefined, app: undefined, listen } as unknown as Parameters< |
| 115 | typeof listenWithPortRetry |
| 116 | >[0]['gateway']; |
| 117 | } |
| 118 | |
| 119 | function addrInUse(): NodeJS.ErrnoException { |
| 120 | const err = new Error('listen EADDRINUSE') as NodeJS.ErrnoException; |
Tested by
no test coverage detected