From aca3031dea7b962497268483d9ce0165d0898aad Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Wed, 21 Feb 2024 10:42:22 -0600 Subject: [PATCH 1/2] switch to global test timeout --- tests/e2e.test.ts | 14 +++++++------- vite.config.js | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/e2e.test.ts b/tests/e2e.test.ts index 21b18880b..66ea5650b 100644 --- a/tests/e2e.test.ts +++ b/tests/e2e.test.ts @@ -141,7 +141,7 @@ describe('E2E Test', () => { expect(existsSync(outputLocation)).toBe(true) - }, 2 * 60 * 1000) // Allow two minutes to create dataset + }) test('Create new pipeline by specifying a name', async () => { @@ -185,7 +185,7 @@ describe('E2E Test', () => { // Advance to formats page await toNextPage('structure') - }, 10 * 1000) + }) test('Specify data formats', async () => { @@ -227,7 +227,7 @@ describe('E2E Test', () => { await toNextPage('locate') - }, 10 * 1000) + }) test('Locate all your source data programmatically', async () => { @@ -319,7 +319,7 @@ describe('E2E Test', () => { await toNextPage('sourcedata') - }, 10 * 1000) + }) test('Review source data information', async () => { @@ -342,7 +342,7 @@ describe('E2E Test', () => { await toNextPage('inspect') - }, 30 * 1000) // Wait for conversion preview to complete + }) // Wait for conversion preview to complete test('Review NWB Inspector output', async () => { @@ -358,7 +358,7 @@ describe('E2E Test', () => { if (skipUpload) await toHome() - }, 60 * 1000) // Wait for full conversion to complete + }) // Wait for full conversion to complete const uploadDescribe = skipUpload ? describe.skip: describe @@ -402,7 +402,7 @@ describe('E2E Test', () => { await toNextPage('review') - }, 3 * 60 * 1000) // Wait for upload to finish (~2min on M2) + }) // Wait for upload to finish (~2min on M2) test('Review upload results', async () => { diff --git a/vite.config.js b/vite.config.js index 13ae4ac38..508a086ea 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,5 +5,6 @@ export default defineConfig({ test: { environment: "jsdom", setupFiles: ["dotenv/config"], + testTimeout: 3 *60 * 1000, }, }); From 0e8e96371998a567e9786a46e1990092a1ac456c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:43:39 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 508a086ea..747d09a47 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,6 +5,6 @@ export default defineConfig({ test: { environment: "jsdom", setupFiles: ["dotenv/config"], - testTimeout: 3 *60 * 1000, + testTimeout: 3 * 60 * 1000, }, });