Skip to content

Commit

Permalink
make http test trigger rewrapping of http functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Feb 23, 2022
1 parent 1e198b2 commit 2f43cae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/nextjs/test/integration/test/server/tracingHttp.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ module.exports = async ({ url: urlBase, argv }) => {
'tracingHttp',
);

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

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

0 comments on commit 2f43cae

Please sign in to comment.