mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
test(claws): reject normalized agent collisions
This commit is contained in:
@@ -284,12 +284,7 @@ describe("applyClawAddPlan", () => {
|
||||
transform({ agents: { list: [{ id: " Worker " }] } });
|
||||
},
|
||||
}),
|
||||
).resolves.toMatchObject({
|
||||
status: "partial",
|
||||
workspaceCreated: false,
|
||||
configCommitted: false,
|
||||
error: { code: "agent_id_collision" },
|
||||
});
|
||||
).rejects.toMatchObject({ code: "agent_id_collision" });
|
||||
await expect(access(plan.agent.workspace)).rejects.toThrow();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user