test: remove cli retry test waits

This commit is contained in:
Peter Steinberger
2026-05-06 06:50:03 +01:00
parent fa2a32d0c5
commit 5da9f5e57c
2 changed files with 26 additions and 3 deletions

View File

@@ -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