This commit is contained in:
paisley
2026-03-14 16:18:06 +08:00
parent fc1f6a525e
commit 43d9495779

View File

@@ -175,7 +175,9 @@ describe('agent config lifecycle', () => {
]);
expect(config.bindings).toEqual([]);
await expect(access(test2RuntimeDir)).rejects.toThrow();
await expect(access(test2WorkspaceDir)).rejects.toThrow();
// Workspace deletion is intentionally deferred by `deleteAgentConfig` to avoid
// ENOENT errors during Gateway restart, so it should still exist here.
await expect(access(test2WorkspaceDir)).resolves.toBeUndefined();
infoSpy.mockRestore();
});