mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 23:41:24 +00:00
perf(test): dedupe telegram/node coverage and speed fixtures
This commit is contained in:
@@ -89,7 +89,10 @@ vi.mock("./session.js", () => {
|
||||
import { monitorWebInbox, resetWebInboundDedupe } from "./inbound.js";
|
||||
|
||||
async function waitForMessage(onMessage: ReturnType<typeof vi.fn>) {
|
||||
await vi.waitFor(() => expect(onMessage).toHaveBeenCalledTimes(1));
|
||||
await vi.waitFor(() => expect(onMessage).toHaveBeenCalledTimes(1), {
|
||||
interval: 1,
|
||||
timeout: 250,
|
||||
});
|
||||
return onMessage.mock.calls[0][0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user