From 13f52985bb699e91b7d38c24f0844d480498a430 Mon Sep 17 00:00:00 2001 From: Yuxuan Zhang Date: Mon, 31 Mar 2025 14:18:16 -0400 Subject: [PATCH] fix: try to loosen timeout for data loading tests --- __tests__/e2e/data-loading/data.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/e2e/data-loading/data.test.ts b/__tests__/e2e/data-loading/data.test.ts index fafc403a..1eb267e3 100644 --- a/__tests__/e2e/data-loading/data.test.ts +++ b/__tests__/e2e/data-loading/data.test.ts @@ -54,7 +54,7 @@ describe('static data file support in vite 3', () => { document.querySelector('pre#basic')?.textContent === JSON.stringify([{ a: false }, { b: true }], null, 2), undefined, - { timeout: 3000 } + { timeout: 5000 } ) } finally { await fs.writeFile(a, JSON.stringify({ a: true }, null, 2) + '\n') @@ -69,7 +69,7 @@ describe('static data file support in vite 3', () => { document.querySelector('pre#basic')?.textContent === JSON.stringify([{ a: true }], null, 2), undefined, - { timeout: 3000 } + { timeout: 5000 } ) err = false } finally { @@ -85,7 +85,7 @@ describe('static data file support in vite 3', () => { document.querySelector('pre#basic')?.textContent === JSON.stringify([{ a: true }, { b: false }], null, 2), undefined, - { timeout: 3000 } + { timeout: 5000 } ) } finally { await fs.writeFile(b, JSON.stringify({ b: true }, null, 2) + '\n')