From 33e4ecb70d07a380665b096acbd1515b46437c52 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Mon, 27 Jan 2025 15:06:05 +0100 Subject: [PATCH] test(e2e/nextjs): Avoid making request to example.com --- .../nextjs-14/app/request-instrumentation/page.tsx | 4 ++-- .../nextjs-14/tests/request-instrumentation.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dev-packages/e2e-tests/test-applications/nextjs-14/app/request-instrumentation/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-14/app/request-instrumentation/page.tsx index 0d877296cced..c73e6f79db00 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-14/app/request-instrumentation/page.tsx +++ b/dev-packages/e2e-tests/test-applications/nextjs-14/app/request-instrumentation/page.tsx @@ -3,9 +3,9 @@ import https from 'https'; export const dynamic = 'force-dynamic'; export default async function Page() { - await fetch('https://example.com/', { cache: 'no-cache' }).then(res => res.text()); + await fetch('https://github.com/', { cache: 'no-cache' }).then(res => res.text()); await new Promise(resolve => { - https.get('https://example.com/', res => { + https.get('https://github.com/', res => { res.on('data', () => { // Noop consuming some data so that request can close :) }); diff --git a/dev-packages/e2e-tests/test-applications/nextjs-14/tests/request-instrumentation.test.ts b/dev-packages/e2e-tests/test-applications/nextjs-14/tests/request-instrumentation.test.ts index d26d4e871b6e..2446ffa68659 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-14/tests/request-instrumentation.test.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-14/tests/request-instrumentation.test.ts @@ -19,7 +19,7 @@ test('Should send a transaction with a fetch span', async ({ page }) => { 'sentry.op': 'http.client', 'sentry.origin': 'auto.http.otel.node_fetch', }), - description: 'GET https://example.com/', + description: 'GET https://github.com/', }), ); @@ -30,7 +30,7 @@ test('Should send a transaction with a fetch span', async ({ page }) => { 'sentry.op': 'http.client', 'sentry.origin': 'auto.http.otel.http', }), - description: 'GET https://example.com/', + description: 'GET https://github.com/', }), ); });