mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 02:06:43 +00:00
test(nextcloud-talk): stabilize room timeout proof (#111490)
This commit is contained in:
@@ -3,6 +3,8 @@ import { withServer } from "openclaw/plugin-sdk/test-env";
|
|||||||
import { describe, expect, it, vi } from "vitest";
|
import { describe, expect, it, vi } from "vitest";
|
||||||
import { resolveNextcloudTalkRoomKind } from "./room-info.js";
|
import { resolveNextcloudTalkRoomKind } from "./room-info.js";
|
||||||
|
|
||||||
|
const REQUEST_TIMEOUT_MS = 500;
|
||||||
|
|
||||||
describe("nextcloud talk room info fetch timeout", () => {
|
describe("nextcloud talk room info fetch timeout", () => {
|
||||||
it("bounds hanging room info GET requests", async () => {
|
it("bounds hanging room info GET requests", async () => {
|
||||||
let received = false;
|
let received = false;
|
||||||
@@ -32,7 +34,7 @@ describe("nextcloud talk room info fetch timeout", () => {
|
|||||||
exit: vi.fn(),
|
exit: vi.fn(),
|
||||||
log: vi.fn(),
|
log: vi.fn(),
|
||||||
},
|
},
|
||||||
timeoutMs: 50,
|
timeoutMs: REQUEST_TIMEOUT_MS,
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(kind).toBeUndefined();
|
expect(kind).toBeUndefined();
|
||||||
|
|||||||
Reference in New Issue
Block a user