Unverified Commit ac00f185 authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

[test] Stabilize middleware revalidation test (#99378)

The grid page title used a random value whose string length varied. The
RSC shell byte offset includes the title bytes. The test removes the
title value before comparing two responses, but the `b:` row retains the
original offset, so the equality assertion fails when the title lengths
differ. The fixture now formats the value to 16 decimal places to keep
the offset stable.

[Flakiness
metrics](https://app.datadoghq.com/ci/test/runs?query=test_level%3Atest%20%40git.repository.id%3A%22github.com%2Fvercel%2Fnext.js%22%20%40test.name%3A%22middleware-static-rewrite%20should%20revalidate%20the%20overview%20page%20without%20replacing%20it%20with%20a%20404%22%20%40test.status%3A%28%22fail%22%20OR%20pass%29&agg_m=count&agg_m_source=base&agg_t=count&fromUser=false&index=citest&start=1790020370174&end=1790625170174&paused=false)

<img width="416" height="175" alt="Screenshot 2026-09-28 at 21 53 35"
src="https://github.com/user-attachments/assets/6ca08128-6bd3-4c2e-aa41-37d2897425e0"
/>
parent e2de3c0b
async function getMetadata() {
'use cache'
return {
title: `Grid Page ${Math.random()}`,
title: `Grid Page ${Math.random().toFixed(16)}`,
}
}
......
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