Files
Nexus/tests/test_agent_heartbeat_ttl.py
T
Nexus Deploy a2ae74d582 release: BUG fixes batch 1-6, full bug scan docs, Ubuntu/Linux dev
- 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
2026-06-04 14:01:14 +08:00

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)