a2ae74d582
- Backend: auth refresh reuse, schedule/retry/sync/agent/files fixes - Frontend: push WS, files ETag browse, vite build assets - Docs: audit/changelog, production deploy gate, bug scan registry B7-77 - Deploy: deploy-production.sh, prune assets, gate logs
10 lines
338 B
Python
10 lines
338 B
Python
"""Agent heartbeat Redis TTL must outlive the MySQL flush interval."""
|
|
|
|
from server.api.agent import REDIS_KEY_EXPIRE
|
|
from server.background.heartbeat_flush import FLUSH_INTERVAL
|
|
|
|
|
|
def test_heartbeat_redis_ttl_exceeds_flush_interval():
|
|
assert REDIS_KEY_EXPIRE > FLUSH_INTERVAL
|
|
assert REDIS_KEY_EXPIRE == int(FLUSH_INTERVAL * 1.5)
|