rate-limiting feinschliff: 429-retry, API-call reduction, auto-route detection
AUFGABE 1 — test_03 API-calls reduzieren: - Skip get_latest_timestamp on source room; use post_message's returned ts as cursor (saves 1 channels.history call) - Source polling: initial_interval=5s (was 2s), timeout=30s (was 25s) - Target polling: timeout=60s (was 25s), initial_interval=8s (was 2s) - post_message() now returns (msg_id, ts) tuple — all call sites updated AUFGABE 2 — 429-retry strategy verbessern: - rc_rest.py: 5 retries with 3s/6s/12s/20s/30s backoff (was 3 retries 3s/6s/12s) - polling.py: 5 consecutive 429s before RateLimitSkip (was 3) - polling.py: 429 backoff max 30s (was 24s) AUFGABE 3 — rate-limit-cooldown erhöhen: - conftest.py: 20s between tests (was 15s) AUFGABE 4 — test_03 auto-route robustness: - Detect auto-route (wechseln/sehe dich/thema) vs button-move-request (kopieren/rüber/attachments) - Auto-route: pytest.skip with reason, no button click, no target verification - Button-request: proceed with existing button-click + target-verification flow
This commit is contained in:
@@ -50,7 +50,7 @@ def test_01_echo_bot_responds(
|
||||
"""
|
||||
# Step 1: Post test message
|
||||
test_text = "Hallo Bot, bitte antworte mit 'Echo-Test OK'"
|
||||
msg_id = post_test_message(
|
||||
msg_id, _ = post_test_message(
|
||||
rc_client, test_room_id, test_text,
|
||||
posted_message_ids, rate_limiter,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user