Unverified Commit d407204c authored by Luke Sandberg's avatar Luke Sandberg Committed by GitHub

test: remove stale deploy gate on cold RSC navigation param caching test (#100285)

## Summary

`cached navigations › caches params from a cold RSC navigation for
repeated navigations` was gated with `@gate !deploy || adapter` because
the legacy Vercel builder incorrectly prerenders params omitted from
`generateStaticParams`. The old version of the test asserted that the
omitted `bottom` param was *not* cached on repeat navigations, which the
legacy builder violated.

#99617 rewrote the test to assert the opposite: repeat navigations to
`/required-fallback-params/t2/b1` now expect `Bottom: b1` to be served
from the cache, plus a new check that a different param (`b2`) still
shows its loading boundary. Both hold on the legacy builder, so the
inverted gate now fails the deploy suite with "Failing test passed even
though it was supposed to fail" on both Webpack and Turbopack (e.g. the
[v16.5.0-canary.15 deploy
run](https://github.com/vercel/next.js/actions/runs/38825363975/job/116760175009)).

This removes the stale gate so the test runs as a normal assertion in
deploy mode.

## Verification

- Not run: deploy tests locally (requires Vercel deploy credentials);
the linked deploy run shows the test passing on both bundlers once the
gate inversion is ignored.

<!-- NEXT_JS_LLM -->
parent f09aa18f
...@@ -259,9 +259,6 @@ describe('cached navigations', () => { ...@@ -259,9 +259,6 @@ describe('cached navigations', () => {
) )
}) })
// The legacy Vercel builder incorrectly prerenders params omitted from
// generateStaticParams.
// @gate !deploy || adapter
it('caches params from a cold RSC navigation for repeated navigations', async () => { it('caches params from a cold RSC navigation for repeated navigations', async () => {
const top = 't2' const top = 't2'
const route = `/required-fallback-params/${top}/b1` const route = `/required-fallback-params/${top}/b1`
......
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