test: dedupe codex subagent mirror mock reads · openclaw/openclaw@16c5d5b
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 |
|---|
@@ -67,7 +67,7 @@ describe("CodexNativeSubagentTaskMirror", () => {
|
67 | 67 | lastEventAt: 20_000, |
68 | 68 | progressSummary: "Codex native subagent started.", |
69 | 69 | }); |
70 | | -expect(vi.mocked(runtime.createRunningTaskRun).mock.calls.at(0)?.[0]).not.toHaveProperty( |
| 70 | +expect(vi.mocked(runtime.createRunningTaskRun).mock.calls[0]?.[0]).not.toHaveProperty( |
71 | 71 | "childSessionKey", |
72 | 72 | ); |
73 | 73 | expect(runtime.recordTaskRunProgressByRunId).toHaveBeenCalledWith({ |
@@ -253,7 +253,7 @@ describe("CodexNativeSubagentTaskMirror", () => {
|
253 | 253 | lastEventAt: 40_000, |
254 | 254 | progressSummary: "Codex native subagent spawned.", |
255 | 255 | }); |
256 | | -expect(vi.mocked(runtime.createRunningTaskRun).mock.calls.at(0)?.[0]).not.toHaveProperty( |
| 256 | +expect(vi.mocked(runtime.createRunningTaskRun).mock.calls[0]?.[0]).not.toHaveProperty( |
257 | 257 | "childSessionKey", |
258 | 258 | ); |
259 | 259 | expect(runtime.recordTaskRunProgressByRunId).toHaveBeenCalledWith({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。