Unverified Commit 1226b535 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Deflake legacy-link-behavior (#85805)

Suspense around body will trigger "missing tags" warning if something throws in the boundary. This error can come in slightly later and cause flaky test results.

Fixes
```
● Validations for <Link legacyBehavior> › When rendering from a Client Component › warns and throws an error if the child is lazy JSX
  
      expect(received).toMatchInlineSnapshot(snapshot)
  
      Snapshot name: `Validations for <Link legacyBehavior> When rendering from a Client Component warns and throws an error if the child is lazy JSX 1`
```
-- https://github.com/vercel/next.js/actions/runs/19097617827/job/54561506584#step:34:13256
parent 831534c1
......@@ -8,11 +8,11 @@ export default async function Root({
}) {
return (
<html>
<Suspense>
<Connection>
<body>{children}</body>
</Connection>
</Suspense>
<body>
<Suspense>
<Connection>{children}</Connection>
</Suspense>
</body>
</html>
)
}
......
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