diff --git a/tools/src/hwpod-native-service.test.ts b/tools/src/hwpod-native-service.test.ts index 804a6a2b..bc7b943b 100644 --- a/tools/src/hwpod-native-service.test.ts +++ b/tools/src/hwpod-native-service.test.ts @@ -19,6 +19,7 @@ test("HWPOD aggregate status reports API, worker, and Web together", async () => web: { service: "web", status: "stopped" }, }, }); + expect(Object.values(result.services).every((service) => service.operation.endsWith(".status"))).toBe(true); } finally { await rm(cwd, { recursive: true, force: true }); } diff --git a/tools/src/hwpod-native-service.ts b/tools/src/hwpod-native-service.ts index 7f794a55..7efd1052 100644 --- a/tools/src/hwpod-native-service.ts +++ b/tools/src/hwpod-native-service.ts @@ -12,7 +12,7 @@ type ServiceName = "api" | "worker" | "web"; const SERVICE_NAMES: ServiceName[] = ["api", "worker", "web"]; export async function hwpodNativeServicesStatus(input: { cwd: string; env: Record }) { - const results = await Promise.all(SERVICE_NAMES.map((service) => hwpodNativeServiceCommand({ service, action: "status", ...input }))); + const results = await Promise.all(SERVICE_NAMES.map((service) => hwpodNativeServiceCommand({ ...input, service, action: "status" }))); const runningCount = results.filter((result) => result.ok).length; return { ok: runningCount === SERVICE_NAMES.length,