Skip to content

Commit 0934e31

Browse files
committed
Fix coverage
1 parent a7f6024 commit 0934e31

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

tests/test_feature_flags.py

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,17 +231,31 @@ def test_flag_limit(sentry_init, capture_events):
231231

232232
with start_transaction(name="hi"):
233233
with start_span(op="foo", name="bar"):
234-
add_feature_flag("first", True)
235-
add_feature_flag("second", True)
236-
add_feature_flag("third", True)
237-
add_feature_flag("fourth", True)
234+
add_feature_flag("0", True)
235+
add_feature_flag("1", True)
236+
add_feature_flag("2", True)
237+
add_feature_flag("3", True)
238+
add_feature_flag("4", True)
239+
add_feature_flag("5", True)
240+
add_feature_flag("6", True)
241+
add_feature_flag("7", True)
242+
add_feature_flag("8", True)
243+
add_feature_flag("9", True)
244+
add_feature_flag("10", True)
238245

239246
(event,) = events
240247
assert event["spans"][0]["data"] == ApproxDict(
241248
{
242-
"flag.evaluation.first": True,
243-
"flag.evaluation.second": True,
244-
"flag.evaluation.third": True,
249+
"flag.evaluation.0": True,
250+
"flag.evaluation.1": True,
251+
"flag.evaluation.2": True,
252+
"flag.evaluation.3": True,
253+
"flag.evaluation.4": True,
254+
"flag.evaluation.5": True,
255+
"flag.evaluation.6": True,
256+
"flag.evaluation.7": True,
257+
"flag.evaluation.8": True,
258+
"flag.evaluation.9": True,
245259
}
246260
)
247-
assert "flag.evaluation.fourth" not in event["spans"][0]["data"]
261+
assert "flag.evaluation.10" not in event["spans"][0]["data"]

0 commit comments

Comments
 (0)