* Check if hub is ready via health endpoint
(url: string)
| 55 | * Check if hub is ready via health endpoint |
| 56 | */ |
| 57 | async function checkServerHealth(url: string): Promise<boolean> { |
| 58 | try { |
| 59 | const response = await fetch(`${url}/health`, { |
| 60 | signal: AbortSignal.timeout(1000) |
| 61 | }) |
| 62 | return response.ok |
| 63 | } catch { |
| 64 | return false |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Wait for hub to become ready |
no outgoing calls
no test coverage detected