test: dedupe gateway run loop mock read · openclaw/openclaw@060768e
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -289,7 +289,7 @@ function expectRestartHandoffCall(expected: {
|
289 | 289 | supervisorMode: "external" | "launchd"; |
290 | 290 | }) { |
291 | 291 | expect(writeGatewayRestartHandoffSync).toHaveBeenCalledTimes(1); |
292 | | -const [handoff] = writeGatewayRestartHandoffSync.mock.calls.at(0) ?? []; |
| 292 | +const [handoff] = writeGatewayRestartHandoffSync.mock.calls[0] ?? []; |
293 | 293 | if (!handoff || typeof handoff !== "object" || Array.isArray(handoff)) { |
294 | 294 | throw new Error("expected restart handoff options object"); |
295 | 295 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。