fix: test_03 assertion, test_04 rate-limiting, onboarding reset on restart
AUFGABE 1 — test_03 flexible routing assertion: - Ersetzt starre 'kopieren'/'rüber'-Prüfung durch flexible Keyword-Liste (wechseln, thema, sehe dich, move, raum, rüberkopieren, wechsel) - Zusätzlich: Prüfung auf Zielraum-Namen (rc-test-automated, test-rc-target) - Akzeptiert sowohl Move-Request-Buttons (Butler) als auch Auto-Route-Ankündigung AUFGABE 2 — test_04 rate-limiting: - 10s Pause vor Step 2 (rate-limit window reset nach test_03) - Timeout von 25s auf 30s erhöht - Polling-Intervall (sleep vor Projektraum-Check) von 2s auf 5s erhöht AUFGABE 3 — Onboarding-Reset-Fix: - Drei Stellen in adapter.py connect(): _start_onboarding([]) nur noch aufrufen wenn sm.state != OnboardingState.ACTIVE - Verhindert dass onboarding.yaml bei jedem Gateway-Neustart auf AWAITING_ROOM zurückgesetzt wird, obwohl Onboarding abgeschlossen ist
This commit is contained in:
@@ -91,13 +91,15 @@ def test_04_multi_room(
|
||||
|
||||
# Step 2: Wait for bot response in main room
|
||||
# The bot should acknowledge the message (even if auto-routed)
|
||||
# Pause 10s to let rate-limit window reset after test_03
|
||||
time.sleep(10.0)
|
||||
try:
|
||||
bot_response = wait_for_bot_message(
|
||||
client=rc_client,
|
||||
room_id=test_room_id,
|
||||
bot_username=bot_username,
|
||||
cursor=main_cursor,
|
||||
timeout=25.0,
|
||||
timeout=30.0, # increased from 25s
|
||||
rate_limiter=rate_limiter,
|
||||
)
|
||||
except RateLimitSkip as e:
|
||||
@@ -120,7 +122,8 @@ def test_04_multi_room(
|
||||
logger.info("Test 04: project room cursor = %s", project_cursor[:19])
|
||||
|
||||
# Give the Archivar a moment to complete the copy
|
||||
time.sleep(2.0)
|
||||
# Increased from 2s to 5s — fewer API calls, less rate-limit pressure
|
||||
time.sleep(5.0)
|
||||
|
||||
try:
|
||||
rate_limiter.acquire()
|
||||
|
||||
Reference in New Issue
Block a user