-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Checks in some tests are broken #1122
Comments
Related #990 |
@vaind Sentry should swallow every exception when a user makes a mistake in the callbacks, that's intended and by design. |
Likely an oversight because of PRs related to this, indeed. |
e.g. multiple calls to |
I'd suggest having a test-mode/dev-mode setting where exceptions are not captured in callbacks. This would could also help users if they're having trouble with reporting some errors, as it's much easier to find errors this way than look for logs. |
I've noticed while working on recent PRs that test code sometimes uses
expect()
and other types of assertions in callbacks to Sentry. E.g. Sentry.init() - these are broken and are actually not being checked at all because Sentry swallows these errors (doesn't propagate them). Minimal repro - the following test passes:Besides a testing issue, this may also be a design problem - naively, as a User, I'd expect exceptions in user-provided code to be propagated.
The text was updated successfully, but these errors were encountered: