Skip to content

Commit

Permalink
try again to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Jan 20, 2022
1 parent 0cf4f8b commit e65d1b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/integration-tests/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ async function getMultipleRequests(
// the request. The code can be restored to its original form (the commented-out line below) once that hack is
// removed. See https://github.com/getsentry/sentry-javascript/pull/4425.
const parsedRequest = requestParser(request);
delete (parsedRequest.tags || {}).skippedNormalization;
if (parsedRequest.tags) {
if (parsedRequest.tags.skippedNormalization && Object.keys(parsedRequest.tags).length === 1) {
delete parsedRequest.tags;
} else {
delete parsedRequest.tags.skippedNormalization;
}
}
requestData.push(parsedRequest);
// requestData.push(requestParser(request));

Expand Down

0 comments on commit e65d1b1

Please sign in to comment.