test(core): trim redundant setup and tighten waits

This commit is contained in:
Peter Steinberger
2026-02-24 00:31:36 +00:00
parent f58c1ef34e
commit 663f784e4e
6 changed files with 76 additions and 73 deletions

View File

@@ -123,7 +123,7 @@ describe("daemon-cli coverage", () => {
expect(callGateway).toHaveBeenCalledWith(expect.objectContaining({ method: "status" }));
expect(findExtraGatewayServices).toHaveBeenCalled();
expect(inspectPortUsage).toHaveBeenCalled();
}, 20_000);
});
it("derives probe URL from service args + env (json)", async () => {
resetRuntimeCapture();
@@ -162,7 +162,7 @@ describe("daemon-cli coverage", () => {
expect(parsed.config?.mismatch).toBe(true);
expect(parsed.rpc?.url).toBe("ws://127.0.0.1:19001");
expect(parsed.rpc?.ok).toBe(true);
}, 20_000);
});
it("passes deep scan flag for daemon status", async () => {
findExtraGatewayServices.mockClear();