mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-24 07:01:49 +00:00
test(core): trim redundant setup and tighten waits
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -143,9 +143,8 @@ describe("gateway-cli coverage", () => {
|
||||
|
||||
expect(discoverGatewayBeacons).toHaveBeenCalledTimes(1);
|
||||
const out = runtimeLogs.join("\n");
|
||||
for (const text of ['"beacons"', '"wsUrl"', "ws://"]) {
|
||||
expect(out).toContain(text);
|
||||
}
|
||||
expect(out).toContain('"beacons"');
|
||||
expect(out).toContain("ws://");
|
||||
});
|
||||
|
||||
it("validates gateway discover timeout", async () => {
|
||||
|
||||
Reference in New Issue
Block a user