mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 14:31:10 +00:00
test(perf): bypass daemon install token-generation path in coverage test
This commit is contained in:
@@ -181,7 +181,15 @@ describe("daemon-cli coverage", () => {
|
|||||||
serviceIsLoaded.mockResolvedValueOnce(false);
|
serviceIsLoaded.mockResolvedValueOnce(false);
|
||||||
serviceInstall.mockClear();
|
serviceInstall.mockClear();
|
||||||
|
|
||||||
await runDaemonCommand(["daemon", "install", "--port", "18789", "--json"]);
|
await runDaemonCommand([
|
||||||
|
"daemon",
|
||||||
|
"install",
|
||||||
|
"--port",
|
||||||
|
"18789",
|
||||||
|
"--token",
|
||||||
|
"test-token",
|
||||||
|
"--json",
|
||||||
|
]);
|
||||||
|
|
||||||
expect(serviceInstall).toHaveBeenCalledTimes(1);
|
expect(serviceInstall).toHaveBeenCalledTimes(1);
|
||||||
const parsed = parseFirstJsonRuntimeLine<{
|
const parsed = parseFirstJsonRuntimeLine<{
|
||||||
|
|||||||
Reference in New Issue
Block a user