MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / healthStatusCommand

Function healthStatusCommand

e2e/cli/service-install-takeover.test.ts:76–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74};
75
76const 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
81const waitForGuestHealth = async (expected: boolean): Promise<boolean> => {
82 const deadline = Date.now() + 30_000;

Callers 1

waitForGuestHealthFunction · 0.85

Calls 1

guestOsFunction · 0.70

Tested by

no test coverage detected