()
| 74 | }; |
| 75 | |
| 76 | const healthStatusCommand = (): string => |
| 77 | guestOs() === "windows" |
| 78 | ? `try { $r = Invoke-WebRequest -UseBasicParsing -TimeoutSec 3 'http://127.0.0.1:${PORT}/api/health'; [string]$r.StatusCode } catch { '000' }` |
| 79 | : `curl -s -o /dev/null -w '%{http_code}' --max-time 3 http://127.0.0.1:${PORT}/api/health`; |
| 80 | |
| 81 | const waitForGuestHealth = async (expected: boolean): Promise<boolean> => { |
| 82 | const deadline = Date.now() + 30_000; |
no test coverage detected