mirror of https://github.com/openclaw/openclaw.git
test(perf): bypass daemon install token-generation path in coverage test
This commit is contained in:
parent
916b0e6609
commit
ba3957ad77
|
|
@ -181,7 +181,15 @@ describe("daemon-cli coverage", () => {
|
|||
serviceIsLoaded.mockResolvedValueOnce(false);
|
||||
serviceInstall.mockClear();
|
||||
|
||||
await runDaemonCommand(["daemon", "install", "--port", "18789", "--json"]);
|
||||
await runDaemonCommand([
|
||||
"daemon",
|
||||
"install",
|
||||
"--port",
|
||||
"18789",
|
||||
"--token",
|
||||
"test-token",
|
||||
"--json",
|
||||
]);
|
||||
|
||||
expect(serviceInstall).toHaveBeenCalledTimes(1);
|
||||
const parsed = parseFirstJsonRuntimeLine<{
|
||||
|
|
|
|||
Loading…
Reference in New Issue