Skip to content

Commit 3e62fd2

Browse files
committed
add assertion for false positive metric
1 parent e125664 commit 3e62fd2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/sentry/grouping/test_parameterization.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,3 +708,12 @@ def test_replacement_callback_false_positive_triggers_individual_regex_fallback(
708708
)
709709
== 0
710710
)
711+
712+
# We also only counted the false positive once, even though we hit it both during the main
713+
# combo-regex parameterization and during fallback
714+
assert (
715+
count_matching_calls(
716+
mock_metrics_incr, "grouping.parameterization_false_positive", tags={"key": "ip"}
717+
)
718+
== 1
719+
)

0 commit comments

Comments
 (0)