test: assert cleanup completion follows run end · openclaw/openclaw@e994c99
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -578,7 +578,7 @@ describe("subagent registry lifecycle hardening", () => {
|
578 | 578 | |
579 | 579 | expect(runSubagentAnnounceFlow).not.toHaveBeenCalled(); |
580 | 580 | expect(typeof entry.cleanupCompletedAt).toBe("number"); |
581 | | -expect(entry.cleanupCompletedAt).toBeGreaterThan(0); |
| 581 | +expect(entry.cleanupCompletedAt).toBeGreaterThanOrEqual(4_000); |
582 | 582 | expect(notifyContextEngineSubagentEnded).toHaveBeenCalledWith({ |
583 | 583 | childSessionKey: entry.childSessionKey, |
584 | 584 | reason: "completed", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。