Skip to content

Commit

Permalink
test(v8/e2e): Avoid making request to example.com in nextjs e2e test (#…
Browse files Browse the repository at this point in the history
…15176)

backport of #15170
  • Loading branch information
Lms24 authored Jan 27, 2025
1 parent 3fa3510 commit 4a83c9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import http from 'http';
export const dynamic = 'force-dynamic';

export default async function Page() {
await fetch('http://example.com/', { cache: 'no-cache' }).then(res => res.text());
await fetch('http://github.com/', { cache: 'no-cache' }).then(res => res.text());
await new Promise<void>(resolve => {
http.get('http://example.com/', res => {
http.get('http://github.com/', res => {
res.on('data', () => {
// Noop consuming some data so that request can close :)
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 http://example.com/',
description: 'GET http://github.com/',
}),
);

Expand All @@ -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 http://example.com/',
description: 'GET http://github.com/',
}),
);
});

0 comments on commit 4a83c9a

Please sign in to comment.