fix: allow slower webui chat creation

This commit is contained in:
chengyongru
2026-06-11 23:53:51 +08:00
parent 8dac6b2889
commit 369237f6a8
2 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -219,7 +219,7 @@ describe("useSessions", () => {
await result.current.createChat();
});
expect(client.newChat).toHaveBeenCalledWith(5000, undefined);
expect(client.newChat).toHaveBeenCalledWith(60_000, undefined);
expect(result.current.sessions.map((s) => s.key)).toEqual(["websocket:chat-new"]);
await act(async () => {
@@ -258,7 +258,7 @@ describe("useSessions", () => {
await result.current.createChat(workspaceScope);
});
expect(client.newChat).toHaveBeenCalledWith(5000, workspaceScope);
expect(client.newChat).toHaveBeenCalledWith(60_000, workspaceScope);
expect(result.current.sessions[0]?.workspaceScope).toEqual(workspaceScope);
});