Skip to content

Commit

Permalink
Fix clickhouse test (#4053)
Browse files Browse the repository at this point in the history
We're not interested in random breadcrumbs from random logs like
```
  +     {
  +         'category': 'tzlocal',
  +         'data': {},
  +         'level': 'warning',
  +         'message': '/etc/timezone is deprecated on Debian, and no longer reliable. '
  +         'Ignoring.',
  +         'type': 'log',
        },
```
  • Loading branch information
sentrivana authored Feb 13, 2025
1 parent 7c9f402 commit c2a3c08
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ def test_clickhouse_client_breadcrumbs(sentry_init, capture_events) -> None:
for crumb in event["breadcrumbs"]["values"]:
crumb.pop("timestamp", None)

assert event["breadcrumbs"]["values"] == expected_breadcrumbs
actual_query_breadcrumbs = [
breadcrumb
for breadcrumb in event["breadcrumbs"]["values"]
if breadcrumb["category"] == "query"
]

assert actual_query_breadcrumbs == expected_breadcrumbs


def test_clickhouse_client_breadcrumbs_with_pii(sentry_init, capture_events) -> None:
Expand Down

0 comments on commit c2a3c08

Please sign in to comment.