From a1b1d12da2ea255cc5af65da8634fc4da0dbc71d Mon Sep 17 00:00:00 2001 From: EugeneTes Date: Fri, 25 Sep 2026 07:29:56 +0000 Subject: [PATCH] Wait for the debouncer in the leading-slash bridge test --- src/telegram/bridge.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram/bridge.test.ts b/src/telegram/bridge.test.ts index 902dc13..de497be 100644 --- a/src/telegram/bridge.test.ts +++ b/src/telegram/bridge.test.ts @@ -299,7 +299,7 @@ describe("registerBridge", () => { const h = harness(); await h.bot.handleUpdate(textUpdate("/usr/local/bin is on my path", OWNER, "private", false)); expect(h.texts()).toEqual([]); - expect(h.host.sent).toEqual([{ text: "/usr/local/bin is on my path", images: undefined }]); + await vi.waitFor(() => expect(h.host.sent).toEqual([{ text: "/usr/local/bin is on my path", images: undefined }])); }); it("tells the owner it cannot handle unsupported media", async () => {