FN-8844: correct delegation role error assertion
Align the delegation role test with the pluralized runtime error message. - Update the reviewer delegation rejection expectation to use the roles label. Files changed: packages/engine/src/__tests__/agent-tools-delegation.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Fusion-Task-Id: FN-8844 Fusion-Task-Lineage: d9a34bda-71de-4b47-b93d-a27dfeb018d1 Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
This commit is contained in:
@@ -1030,7 +1030,7 @@ describe("createDelegateTaskTool", () => {
|
||||
}, undefined as any, undefined as any, undefined as any);
|
||||
|
||||
const text = (result.content[0] as { text: string }).text;
|
||||
expect(text).toContain("ERROR: Agent agent-002 has role \"reviewer\"");
|
||||
expect(text).toContain("ERROR: Agent agent-002 has roles \"reviewer\"");
|
||||
expect(text).toContain("Pass override=true to bypass");
|
||||
expect(taskStore.createTask).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user