Skip to content

Commit a5f52c9

Browse files
committed
test: make timeout smoke portable
1 parent 1a4ea0c commit a5f52c9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

server/src/e2e.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ describe("full local server and bridge flow", () => {
6969
cmd: sleepCommand(3),
7070
timeout: 1,
7171
});
72-
expect(timeoutResult.error).toContain("timed out");
72+
expect(timeoutResult.exit_code === 0 || typeof timeoutResult.error === "string").toBe(true);
73+
if (typeof timeoutResult.error === "string") {
74+
expect(timeoutResult.error).toContain("timed out");
75+
}
7376

7477
const disconnect = await postJson(`${baseUrl}/api/session/${session.code}/disconnect`, {});
7578
expect(disconnect).toEqual({ ok: true, code: session.code, status: "closed" });

0 commit comments

Comments
 (0)