Skip to content

Commit 261bf6c

Browse files
(wip): Fix test_records_lost_event_only...
1 parent 5da4f4f commit 261bf6c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/tracing/test_sampling.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ def test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value(
264264
"traces_sample_rate,sampled_output,expected_record_lost_event_calls",
265265
[
266266
(None, False, []),
267-
(0.0, False, [("sample_rate", "transaction", None)]),
267+
(
268+
0.0,
269+
False,
270+
[("sample_rate", "transaction", None, 1), ("sample_rate", "span", None, 1)],
271+
),
268272
(1.0, True, []),
269273
],
270274
)
@@ -282,7 +286,7 @@ def test_records_lost_event_only_if_traces_sample_rate_enabled(
282286
assert transaction.sampled is sampled_output
283287
transaction.finish()
284288

285-
# Use Counter because order of calls does not matter
289+
# Using Counter since order does not matter
286290
assert Counter(record_lost_event_calls) == Counter(expected_record_lost_event_calls)
287291

288292

0 commit comments

Comments
 (0)