Skip to content

Commit 007144e

Browse files
committed
de-brittle the test
1 parent 10baf73 commit 007144e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_logs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ def test_logs_basics(sentry_init, capture_envelopes):
7474
@minimum_python_37
7575
def test_logs_before_emit_log(sentry_init, capture_envelopes):
7676
def _before_log(record, hint):
77-
assert list(record.keys()) == [
77+
assert set(record.keys()) == {
7878
"severity_text",
7979
"severity_number",
8080
"body",
8181
"attributes",
8282
"time_unix_nano",
8383
"trace_id",
84-
]
84+
}
8585

8686
if record["severity_text"] in ["fatal", "error"]:
8787
return None

0 commit comments

Comments
 (0)