Skip to content

Commit ab2fa6f

Browse files
committed
test: tighten slots depth assertion to reflect double depth-counting
1 parent 43114a6 commit ab2fa6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,6 @@ def __init__(self, child=None):
264264
else:
265265
break
266266

267-
assert depth <= EventSerializer._MAX_DEPTH + 5, (
267+
assert depth <= EventSerializer._MAX_DEPTH // 2 + 3, (
268268
f"Nesting depth {depth} exceeded limit — serializer should have truncated"
269269
)

0 commit comments

Comments
 (0)