diff --git a/test/e2e/app-dir/app-prefetch/app/invalid-url/from-link/page.js b/test/e2e/app-dir/app-prefetch/app/invalid-url/from-link/page.js index 6279493ecb384..cdb564620683e 100644 --- a/test/e2e/app-dir/app-prefetch/app/invalid-url/from-link/page.js +++ b/test/e2e/app-dir/app-prefetch/app/invalid-url/from-link/page.js @@ -4,7 +4,7 @@ import { Delay } from '../delay' export const dynamic = 'force-dynamic' -export default async function Page() { +export default function Page() { return ( <> invalid link diff --git a/test/e2e/app-dir/app-prefetch/app/invalid-url/from-router-prefetch/page.js b/test/e2e/app-dir/app-prefetch/app/invalid-url/from-router-prefetch/page.js index 5996f4d2a3f18..a5a61aa3624da 100644 --- a/test/e2e/app-dir/app-prefetch/app/invalid-url/from-router-prefetch/page.js +++ b/test/e2e/app-dir/app-prefetch/app/invalid-url/from-router-prefetch/page.js @@ -6,7 +6,7 @@ import { useRouter } from 'next/navigation' export const dynamic = 'force-dynamic' -export default async function Page() { +export default function Page() { const router = useRouter() useEffect(() => { router.prefetch(INVALID_URL)