Skip to content

Commit 2f43cae

Browse files
committed
make http test trigger rewrapping of http functions
1 parent 1e198b2 commit 2f43cae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/nextjs/test/integration/test/server/tracingHttp.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ module.exports = async ({ url: urlBase, argv }) => {
4040
'tracingHttp',
4141
);
4242

43-
await getAsync(url);
43+
// The `true` causes `getAsync` to rewrap `http.get` in next 12, since it will have been overwritten by the import of
44+
// `nock` above. See https://github.com/getsentry/sentry-javascript/pull/4619.
45+
// TODO: see note in `getAsync` about removing the boolean
46+
await getAsync(url, true);
4447
await sleep(250);
4548

4649
assert.ok(capturedRequest.isDone(), 'Did not intercept expected request');

0 commit comments

Comments
 (0)