Unverified Commit 164c41c2 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

test: extend webpack timeout for dynamic-params-retained-cache (#100382)

### What?

Raise the per-test timeout to 120s for
`test/production/app-dir/dynamic-params-retained-cache` when it runs
with webpack. Turbopack keeps the default 60s.

### Why?

The test runs two production builds and two servers inside one `it`, so
the whole sequence shares jest's 60s budget. Recent webpack production
CI passes took about 26–48s. On a slower runner the test timed out right
after the second server became ready, after both builds had completed
([job](https://github.com/vercel/next.js/actions/runs/38431444892/job/115418819665)).

This follows the existing webpack-only timeout used by
`server-action-period-hash`, which also runs two builds.

### How?

Add `jest.setTimeout(120_000)` behind `IS_WEBPACK_TEST`, with a short
comment.

### Verification

- `pnpm test-start-webpack
test/production/app-dir/dynamic-params-retained-cache/dynamic-params-retained-cache.test.ts`
- `pnpm test-start-turbo
test/production/app-dir/dynamic-params-retained-cache/dynamic-params-retained-cache.test.ts`

<!-- NEXT_JS_LLM -->


<!-- fleet 34574f75-75ca-4871-9010-7480c809fbc7 -->
Co-authored-by: 's avatarvercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com>
Co-authored-by: 's avatarTobias Koppers <1365881+sokra@users.noreply.github.com>
parent 361cb826
......@@ -6,6 +6,13 @@ import { deserialize } from 'node:v8'
import { getRouteCacheKey } from 'next/dist/server/lib/route-cache-key'
import { RouteKind } from 'next/dist/server/route-kind'
// The test runs two production builds, and webpack builds are much slower than
// Turbopack, so the default 60s per-test budget is too tight on slower CI
// runners. Turbopack keeps the default.
if (process.env.IS_WEBPACK_TEST) {
jest.setTimeout(120_000)
}
describe('dynamicParams: false with a cache retained across builds', () => {
const { next } = nextTestSetup({ files: __dirname, skipStart: true })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment