Skip to content

The agent that grows with you

test(redact): keep the ReDoS guard's wall-clock bound far from the fixed cost

kshitijk4poor2ec8a89e539f
diff --git a/tests/agent/test_redact.py b/tests/agent/test_redact.py
index 00b66429d33..116c800569f 100644
--- a/tests/agent/test_redact.py
+++ b/tests/agent/test_redact.py
@@ -540,7 +540,7 @@ class TestTelegramTokens:
"""
import time
- text = "_typelessdata: " + "0" * 300_000 + "\n"
+ text = "_typelessdata: " + "0" * 100_000 + "\n"
t0 = time.perf_counter()
assert redact_sensitive_text(text, force=True) == text
assert time.perf_counter() - t0 < 2.0