From 0ec205127b7aad1dffb373b63751b820ebb42f78 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Thu, 4 Jan 2024 18:16:59 +0100 Subject: [PATCH] test: make tests longer --- test/core/test/wait.test.ts | 4 ++-- test/snapshots/vitest.config.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/core/test/wait.test.ts b/test/core/test/wait.test.ts index f67a23d7f014..9eae8612bcb6 100644 --- a/test/core/test/wait.test.ts +++ b/test/core/test/wait.test.ts @@ -122,8 +122,8 @@ describe('waitUntil', () => { await expect( vi.waitUntil(callback, { - timeout: 100, - interval: 75, + timeout: 1000, + interval: 600, }), ).rejects.toThrowErrorMatchingInlineSnapshot(`[Error: Timed out in waitUntil!]`) diff --git a/test/snapshots/vitest.config.ts b/test/snapshots/vitest.config.ts index 5f07a09383fa..94d4e43aee89 100644 --- a/test/snapshots/vitest.config.ts +++ b/test/snapshots/vitest.config.ts @@ -8,5 +8,6 @@ export default defineConfig({ snapshotFormat: { printBasicPrototype: true, }, + testTimeout: process.env.CI ? 60_000 : 5_000, }, })