Skip to content

Commit 65f3e73

Browse files
committed
Try to unflake
1 parent 47f3b1b commit 65f3e73

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

dev-packages/e2e-tests/test-applications/nextjs-app-dir/event-proxy-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export async function waitForRequest(
147147
const eventCallbackServerPort = await retrieveCallbackServerPort(proxyServerName);
148148

149149
return new Promise<SentryRequestCallbackData>((resolve, reject) => {
150-
const request = http.request(`http://localhost:${eventCallbackServerPort}/`, {}, response => {
150+
const request = http.request(`http://127.0.0.1:${eventCallbackServerPort}/`, {}, response => {
151151
let eventContents = '';
152152

153153
response.on('error', err => {

dev-packages/e2e-tests/test-applications/nextjs-app-dir/pages/api/request-instrumentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export default (_req: NextApiRequest, res: NextApiResponse) => {
88
// Noop consuming some data so that request can close :)
99
});
1010

11-
message.on('close', () => {
12-
res.status(200).json({});
11+
message.on('end', () => {
12+
res.status(200).json({ message: 'Hello from Next.js!' });
1313
});
1414
});
1515
};

packages/node-experimental/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export {
104104
getActiveSpan,
105105
withActiveSpan,
106106
getRootSpan,
107+
spanToJSON,
107108
} from '@sentry/core';
108109

109110
export type {

0 commit comments

Comments
 (0)