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 () => {