P-041: Test-Fixes — PULSE_INTERVAL_S 3.0→5.0 + Reconciliation-Schutz
- test_pulse_interval_is_3_seconds → test_pulse_interval_is_5_seconds (P-039 änderte PULSE_INTERVAL_S von 3.0 auf 5.0, Test war stale) - test_reconcile_sends_after_cooldown: P-039 Reconciliation-Schutz umgehen (last_counter_change auf 0 setzen)
This commit is contained in:
@@ -270,10 +270,10 @@ class TestPulseTimerLifecycle:
|
|||||||
engine._mediator._pulse_toggle = False
|
engine._mediator._pulse_toggle = False
|
||||||
assert engine.get_visible_status() == "online"
|
assert engine.get_visible_status() == "online"
|
||||||
|
|
||||||
def test_pulse_interval_is_3_seconds(self):
|
def test_pulse_interval_is_5_seconds(self):
|
||||||
"""PULSE_INTERVAL_S = 3.0."""
|
"""PULSE_INTERVAL_S = 5.0 (P-039: 3.0→5.0 für 429-Reduktion)."""
|
||||||
from plugin.archivar.presence_engine import _Mediator
|
from plugin.archivar.presence_engine import _Mediator
|
||||||
assert _Mediator.PULSE_INTERVAL_S == 3.0
|
assert _Mediator.PULSE_INTERVAL_S == 5.0
|
||||||
|
|
||||||
|
|
||||||
# ═══════════════════════════════════════════════════════════════════════════
|
# ═══════════════════════════════════════════════════════════════════════════
|
||||||
@@ -329,6 +329,8 @@ class TestReconcileAfterCooldown:
|
|||||||
engine._mediator._rest_cooldown_until = time.monotonic() + 0.05
|
engine._mediator._rest_cooldown_until = time.monotonic() + 0.05
|
||||||
# Ändere Phase während Cooldown (P2 → P4), aber unterdrückt
|
# Ändere Phase während Cooldown (P2 → P4), aber unterdrückt
|
||||||
engine.on_subagent_start() # P2 → P4, suppressed by cooldown
|
engine.on_subagent_start() # P2 → P4, suppressed by cooldown
|
||||||
|
# P-039: Reconciliation-Schutz umgehen (last_counter_change auf 0 setzen)
|
||||||
|
engine._mediator._last_counter_change = 0.0
|
||||||
# Plane Reconciliation
|
# Plane Reconciliation
|
||||||
engine._mediator._schedule_reconcile_locked()
|
engine._mediator._schedule_reconcile_locked()
|
||||||
# Warte auf Reconciliation
|
# Warte auf Reconciliation
|
||||||
|
|||||||
Reference in New Issue
Block a user