mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:30:43 +00:00
perf: trim chat history limit fixture
This commit is contained in:
@@ -501,7 +501,7 @@ describe("gateway server chat", () => {
|
||||
});
|
||||
|
||||
const lines: string[] = [];
|
||||
for (let i = 0; i < 300; i += 1) {
|
||||
for (let i = 0; i < 201; i += 1) {
|
||||
lines.push(
|
||||
JSON.stringify({
|
||||
message: {
|
||||
@@ -520,7 +520,7 @@ describe("gateway server chat", () => {
|
||||
expect(defaultRes.ok).toBe(true);
|
||||
const defaultMsgs = defaultRes.payload?.messages ?? [];
|
||||
expect(defaultMsgs.length).toBe(200);
|
||||
expect(extractFirstTextBlock(defaultMsgs[0])).toBe("m100");
|
||||
expect(extractFirstTextBlock(defaultMsgs[0])).toBe("m1");
|
||||
} finally {
|
||||
testState.agentConfig = undefined;
|
||||
testState.sessionStorePath = undefined;
|
||||
|
||||
Reference in New Issue
Block a user