mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test(perf): bypass matrix send queue delay in send tests
This commit is contained in:
@@ -24,6 +24,10 @@ vi.mock("@vector-im/matrix-bot-sdk", () => ({
|
||||
RustSdkCryptoStorageProvider: vi.fn(),
|
||||
}));
|
||||
|
||||
vi.mock("./send-queue.js", () => ({
|
||||
enqueueSend: async <T>(_roomId: string, fn: () => Promise<T>) => await fn(),
|
||||
}));
|
||||
|
||||
const loadWebMediaMock = vi.fn().mockResolvedValue({
|
||||
buffer: Buffer.from("media"),
|
||||
fileName: "photo.png",
|
||||
|
||||
Reference in New Issue
Block a user