test(server): assert the forwarded plugin setting without nesting callbacks

This commit is contained in:
Mohamed Boudra
2026-11-01 15:21:02 +01:00
parent 8e28e3988b
commit ee936d51c0
@@ -1082,11 +1082,9 @@ describe("PluginAgentClientRegistry", () => {
changeOnItsOwn({ loud: true });
await vi.waitFor(() =>
expect(eventsOfType(events, "options_changed")).toEqual([
{ type: "options_changed", provider: "plugin-direct", patch: { loud: true } },
]),
);
expect(eventsOfType(events, "options_changed")).toEqual([
{ type: "options_changed", provider: "plugin-direct", patch: { loud: true } },
]);
await session.close();
});