mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
test(gateway): avoid mapped hook provenance event race
This commit is contained in:
@@ -260,7 +260,9 @@ describe("gateway server hooks", () => {
|
||||
messages: [{ id: "msg-1", from: "Ada", subject: "Hello", snippet: "Hi", body: "Body" }],
|
||||
});
|
||||
expect(response.status).toBe(200);
|
||||
await waitForSystemEvent();
|
||||
await expect
|
||||
.poll(() => cronIsolatedRun.mock.calls.length, { timeout: 2_000, interval: 10 })
|
||||
.toBe(1);
|
||||
|
||||
const call = (cronIsolatedRun.mock.calls[0] as unknown[] | undefined)?.[0] as {
|
||||
sessionKey?: string;
|
||||
|
||||
Reference in New Issue
Block a user