mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 01:00:44 +00:00
test: remove cli retry test waits
This commit is contained in:
@@ -304,7 +304,7 @@ describe("logs cli", () => {
|
||||
const stdoutWrites = captureStdoutWrites();
|
||||
const exitSpy = vi.spyOn(process, "exit").mockImplementation(() => undefined as never);
|
||||
|
||||
await runLogsCli(["logs", "--follow"]);
|
||||
await runLogsCli(["logs", "--follow", "--interval", "1"]);
|
||||
|
||||
expect(stderrWrites.join("")).toContain("Local Gateway RPC unavailable");
|
||||
expect(stderrWrites.join("")).not.toContain("gateway disconnected");
|
||||
@@ -365,7 +365,14 @@ describe("logs cli", () => {
|
||||
const stdoutWrites = captureStdoutWrites();
|
||||
const exitSpy = vi.spyOn(process, "exit").mockImplementation(() => undefined as never);
|
||||
|
||||
await runLogsCli(["logs", "--follow", "--url", "ws://remote.example.com:18789"]);
|
||||
await runLogsCli([
|
||||
"logs",
|
||||
"--follow",
|
||||
"--interval",
|
||||
"1",
|
||||
"--url",
|
||||
"ws://remote.example.com:18789",
|
||||
]);
|
||||
|
||||
expect(readConfiguredLogTail).not.toHaveBeenCalled();
|
||||
expect(stderrWrites.join("")).toContain("gateway disconnected");
|
||||
@@ -399,7 +406,15 @@ describe("logs cli", () => {
|
||||
const stdoutWrites = captureStdoutWrites();
|
||||
const exitSpy = vi.spyOn(process, "exit").mockImplementation(() => undefined as never);
|
||||
|
||||
await runLogsCli(["logs", "--follow", "--json", "--url", "ws://remote.example.com:18789"]);
|
||||
await runLogsCli([
|
||||
"logs",
|
||||
"--follow",
|
||||
"--interval",
|
||||
"1",
|
||||
"--json",
|
||||
"--url",
|
||||
"ws://remote.example.com:18789",
|
||||
]);
|
||||
|
||||
const stderr = stderrWrites.join("");
|
||||
const noticeRecords = stderr
|
||||
|
||||
Reference in New Issue
Block a user