Skip to content

Commit 4a83c9a

Browse files
authored
test(v8/e2e): Avoid making request to example.com in nextjs e2e test (#15176)
backport of #15170
1 parent 3fa3510 commit 4a83c9a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev-packages/e2e-tests/test-applications/nextjs-14/app/request-instrumentation/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import http from 'http';
33
export const dynamic = 'force-dynamic';
44

55
export default async function Page() {
6-
await fetch('http://example.com/', { cache: 'no-cache' }).then(res => res.text());
6+
await fetch('http://github.com/', { cache: 'no-cache' }).then(res => res.text());
77
await new Promise<void>(resolve => {
8-
http.get('http://example.com/', res => {
8+
http.get('http://github.com/', res => {
99
res.on('data', () => {
1010
// Noop consuming some data so that request can close :)
1111
});

dev-packages/e2e-tests/test-applications/nextjs-14/tests/request-instrumentation.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test('Should send a transaction with a fetch span', async ({ page }) => {
1919
'sentry.op': 'http.client',
2020
'sentry.origin': 'auto.http.otel.node_fetch',
2121
}),
22-
description: 'GET http://example.com/',
22+
description: 'GET http://github.com/',
2323
}),
2424
);
2525

@@ -30,7 +30,7 @@ test('Should send a transaction with a fetch span', async ({ page }) => {
3030
'sentry.op': 'http.client',
3131
'sentry.origin': 'auto.http.otel.http',
3232
}),
33-
description: 'GET http://example.com/',
33+
description: 'GET http://github.com/',
3434
}),
3535
);
3636
});

0 commit comments

Comments
 (0)