From a01e77defc1ba6b72629c2e991d03b4cb1718d05 Mon Sep 17 00:00:00 2001 From: Balint Dolla Date: Wed, 25 Oct 2023 13:22:46 +0200 Subject: [PATCH] fix: increase test timeouts --- tests/integration/slackEvents.test.ts | 4 ++-- tests/utils/waitForDm.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/slackEvents.test.ts b/tests/integration/slackEvents.test.ts index 3bf0be9..59f42da 100644 --- a/tests/integration/slackEvents.test.ts +++ b/tests/integration/slackEvents.test.ts @@ -50,7 +50,7 @@ describe("Slack events", () => { expect(chat.messages![0].text).toEqual( "Please share your birthday with us! :birthday:", ); - }, 10_000); + }, 20_000); it("Should send DM to all users when bot joins the channel", async () => { await sendMockSlackEvent({ @@ -68,5 +68,5 @@ describe("Slack events", () => { expect(chat.messages![0].text).toEqual( "Please share your birthday with us! :birthday:", ); - }, 10_000); + }, 20_000); }); diff --git a/tests/utils/waitForDm.ts b/tests/utils/waitForDm.ts index e6a712d..505576a 100644 --- a/tests/utils/waitForDm.ts +++ b/tests/utils/waitForDm.ts @@ -16,7 +16,7 @@ export const waitForDm = async (app: App) => return chat; }, { - timeout: 10_000, + timeout: 15_000, interval: 1_000, }, );