fix: F6 P1-3 PulseController DDP warning assert + P2 detection logging
P1-3: Add missing assert on warning log in test_start_without_ddp_logs_warning - assert len(warning_calls) >= 1 - assert 'PulseController.start() called without DDP' in str(warning_calls[0]) P2-1: Make gateway_state_path configurable via PresenceEngine param and ROCKETCHAT_GATEWAY_STATE_PATH env var (was hardcoded ~/.hermes/gateway_state.json) P2-2: Add separate 'detection unavailable' log message when pgrep fails, instead of falling through to generic 'no background activity detected' P2-3: Document telemetry coupling in _increment_telemetry docstrings (both PulseController and DetectionTimer)
This commit is contained in:
@@ -1383,6 +1383,8 @@ class TestPulseControllerStartWithoutDdp:
|
||||
c for c in mock_logger.warning.call_args_list
|
||||
if "DDP" in str(c) or "ddp" in str(c)
|
||||
]
|
||||
assert len(warning_calls) >= 1
|
||||
assert "PulseController.start() called without DDP" in str(warning_calls[0])
|
||||
# Mindestens: kein Crash, Thread läuft sauber durch
|
||||
assert not pc.is_running()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user