From f014b46b56c4e724f90a1e1ab6b2a848eda8a4fc Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 23 Jan 2026 06:37:08 +0000 Subject: [PATCH] test: harden onboarding/discord/telegram test setup --- ...l-result.accepts-guild-messages-mentionpatterns-match.test.ts | 1 + .../bot.media.downloads-media-file-path-no-file-download.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/discord/monitor.tool-result.accepts-guild-messages-mentionpatterns-match.test.ts b/src/discord/monitor.tool-result.accepts-guild-messages-mentionpatterns-match.test.ts index 0910b37f5..b31387b45 100644 --- a/src/discord/monitor.tool-result.accepts-guild-messages-mentionpatterns-match.test.ts +++ b/src/discord/monitor.tool-result.accepts-guild-messages-mentionpatterns-match.test.ts @@ -36,6 +36,7 @@ vi.mock("../config/sessions.js", async (importOriginal) => { }); beforeEach(() => { + vi.useRealTimers(); sendMock.mockReset().mockResolvedValue(undefined); updateLastRouteMock.mockReset(); dispatchMock.mockReset().mockImplementation(async ({ dispatcher }) => { diff --git a/src/telegram/bot.media.downloads-media-file-path-no-file-download.test.ts b/src/telegram/bot.media.downloads-media-file-path-no-file-download.test.ts index 77e980344..2ea914874 100644 --- a/src/telegram/bot.media.downloads-media-file-path-no-file-download.test.ts +++ b/src/telegram/bot.media.downloads-media-file-path-no-file-download.test.ts @@ -21,6 +21,7 @@ const apiStub: ApiStub = { }; beforeEach(() => { + vi.useRealTimers(); resetInboundDedupe(); });