test: tighten agents delete workspace assertion · openclaw/openclaw@b61ec71
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -276,7 +276,8 @@ describe("agents delete command", () => {
|
276 | 276 | await agentsDeleteCommand({ id: "ops", force: true, json: true }, runtime); |
277 | 277 | |
278 | 278 | // Workspace should still exist — it was shared |
279 | | -await expect(fs.stat(sharedWorkspace)).resolves.toEqual(expect.any(Object)); |
| 279 | +const retainedWorkspaceStats = await fs.stat(sharedWorkspace); |
| 280 | +expect(retainedWorkspaceStats.isDirectory()).toBe(true); |
280 | 281 | |
281 | 282 | // The JSON output should report why the workspace was retained. |
282 | 283 | const jsonOutput = readJsonLogs(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。