Skip to content

Commit d4c7549

Browse files
authored
test(nextcloud-talk): stabilize room timeout proof (#111490)
1 parent 0db0142 commit d4c7549

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extensions/nextcloud-talk/src/room-info.fetch-timeout.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { withServer } from "openclaw/plugin-sdk/test-env";
33
import { describe, expect, it, vi } from "vitest";
44
import { resolveNextcloudTalkRoomKind } from "./room-info.js";
55

6+
const REQUEST_TIMEOUT_MS = 500;
7+
68
describe("nextcloud talk room info fetch timeout", () => {
79
it("bounds hanging room info GET requests", async () => {
810
let received = false;
@@ -32,7 +34,7 @@ describe("nextcloud talk room info fetch timeout", () => {
3234
exit: vi.fn(),
3335
log: vi.fn(),
3436
},
35-
timeoutMs: 50,
37+
timeoutMs: REQUEST_TIMEOUT_MS,
3638
});
3739

3840
expect(kind).toBeUndefined();

0 commit comments

Comments
 (0)