Another test
This commit is contained in:
@@ -151,7 +151,14 @@ async def test_rate_limiter():
|
||||
print(f"Max usage: {limiter.get_max_usage_pct():.1f}%")
|
||||
print(f"Throttle delay: {limiter.get_throttle_delay():.1f}s")
|
||||
print(f"Estimated time to regain access: {limiter.estimated_time_to_regain_access} min")
|
||||
print(f"Reset time duration: {limiter.reset_time_duration}s")
|
||||
|
||||
# Show per-account reset times
|
||||
if limiter.ad_account_usage:
|
||||
print("Per-account reset times:")
|
||||
for account_id, usage in limiter.ad_account_usage.items():
|
||||
reset_time = usage.get('reset_time_duration', 0)
|
||||
if reset_time > 0:
|
||||
print(f" {account_id}: {reset_time}s")
|
||||
|
||||
# Test 7: Empty/missing headers
|
||||
print("\n--- Test 7: Missing Headers ---")
|
||||
|
||||
Reference in New Issue
Block a user