Skip to content

Commit

Permalink
test(sessions): Add comments to explain test (getsentry#3430)
Browse files Browse the repository at this point in the history
Implement suggestion from getsentry#3419 (comment).

Co-authored-by: Anton Pirker <anton.pirker@sentry.io>
  • Loading branch information
2 people authored and arjenzorgdoc committed Sep 30, 2024
1 parent e1e1aa4 commit da2d51c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ def test_no_thread_on_shutdown_no_errors(sentry_init):
sentry_sdk.get_isolation_scope().end_session()
sentry_sdk.flush()

# If we reach this point without error, the test is successful.


def test_no_thread_on_shutdown_no_errors_deprecated(
sentry_init, suppress_deprecation_warnings
Expand Down Expand Up @@ -242,3 +244,5 @@ def test_no_thread_on_shutdown_no_errors_deprecated(
sentry_sdk.get_isolation_scope().start_session(session_mode="request")
sentry_sdk.get_isolation_scope().end_session()
sentry_sdk.flush()

# If we reach this point without error, the test is successful.

0 comments on commit da2d51c

Please sign in to comment.