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