mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-08 01:57:31 +01:00
Verify independent event deliveries without arrival-order assumption
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
dc9dda92ac
commit
d4dbf28c71
1 file changed
+4
-1
@@ -549,7 +549,10 @@ describe.skipIf(!support.supported)("public MCP OAuth and tool boundary", () =>
|
||||
await f.activity("issue.checked_out", { status: "in_progress", _previous: { status: "todo" } });
|
||||
await f.activity("issue.released", { status: "todo", _previous: { status: "in_progress" } });
|
||||
await f.service.tick();
|
||||
expect(f.received.filter(r => r.body.eventId).map(r => r.body.data.status)).toEqual(["in_progress", "todo"]);
|
||||
const delivered = f.received.filter(r => r.body.eventId).map(r => r.body.data.status);
|
||||
// Independent webhook deliveries do not promise arrival order.
|
||||
expect(delivered).toHaveLength(2);
|
||||
expect(delivered).toEqual(expect.arrayContaining(["in_progress", "todo"]));
|
||||
await f.service.unsubscribe(f.principal, input);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user