test: dedupe codex compact mock reads · openclaw/openclaw@453019a
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -229,7 +229,7 @@ describe("maybeCompactCodexAppServerSession", () => {
|
229 | 229 | expect(nativeDetails?.details?.backend).toBe("codex-app-server"); |
230 | 230 | expect(nativeDetails?.details?.threadId).toBe("thread-1"); |
231 | 231 | expect(compact).toHaveBeenCalledTimes(1); |
232 | | -const [compactCall] = compact.mock.calls.at(0) ?? []; |
| 232 | +const [compactCall] = compact.mock.calls[0] ?? []; |
233 | 233 | expect(compactCall).toStrictEqual({ |
234 | 234 | sessionId: "session-1", |
235 | 235 | sessionKey: "agent:main:session-1", |
@@ -242,7 +242,7 @@ describe("maybeCompactCodexAppServerSession", () => {
|
242 | 242 | runtimeContext: { workspaceDir: tempDir, provider: "codex" }, |
243 | 243 | }); |
244 | 244 | expect(maintain).toHaveBeenCalledTimes(1); |
245 | | -const [maintainCall] = maintain.mock.calls.at(0) ?? []; |
| 245 | +const [maintainCall] = maintain.mock.calls[0] ?? []; |
246 | 246 | const maintainParams = maintainCall as |
247 | 247 | | { |
248 | 248 | sessionId?: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。