From 6a4c70e05156b32c1215454f1fd81090f5a7f74f Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 28 Mar 2022 15:46:01 -0500 Subject: [PATCH] Update default test timeouts for yarn install times (#35669) This updates our default test times as discussed to account for longer `yarn install` times for the isolated tests as GitHub actions network can be slow. x-ref: https://github.com/vercel/next.js/pull/35507#issuecomment-1074606737 x-ref: [slack thread](https://vercel.slack.com/archives/CGU8HUTUH/p1647919982840099) --- test/lib/e2e-utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/lib/e2e-utils.ts b/test/lib/e2e-utils.ts index fa9474f5ca35..3f25fa2793d9 100644 --- a/test/lib/e2e-utils.ts +++ b/test/lib/e2e-utils.ts @@ -5,6 +5,9 @@ import { InstallCommand, NextInstance, PackageJson } from './next-modes/base' import { NextDevInstance } from './next-modes/next-dev' import { NextStartInstance } from './next-modes/next-start' +// increase timeout to account for yarn install time +jest.setTimeout((process.platform === 'win32' ? 240 : 180) * 1000) + const testsFolder = path.join(__dirname, '..') let testFile