MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / assertHealthy

Function assertHealthy

scripts/stress/simdeck.mjs:162–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160}
161
162async function assertHealthy() {
163 const health = await request("GET", "/api/health");
164 if (health?.ok !== true) {
165 throw new Error("SimDeck health endpoint did not return ok=true");
166 }
167}
168
169async function request(method, path, body) {
170 const response = await fetch(`${serverUrl}${path}`, {

Callers 1

simdeck.mjsFile · 0.85

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected