Skip to content

fix(node): Fix failing test #3057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 18, 2020
Merged

Conversation

lobsterkatie
Copy link
Member

Depending on the precision of the clock you're using, timestamps might match even if event A happens before event B. The check for span being included in the transaction event ensures span.finish() must have happened before transaction.finish() - otherwise the latter would have filtered span out.

(I also did some tiny wordsmithing on the test title.)

@github-actions
Copy link
Contributor

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 19.72 KB (0%)
@sentry/browser - Webpack 20.58 KB (0%)
@sentry/react - Webpack 20.58 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 26.86 KB (+0.01% 🔺)

@lobsterkatie lobsterkatie merged commit ddb0555 into master Nov 18, 2020
@lobsterkatie lobsterkatie deleted the kmclb-fix-node-handlers-test-nov-2020 branch November 18, 2020 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants