Orchestrata Ultimate › Tests › Reference › kernel › test_heartbeat_pump
Tests reference — tests/kernel/test_heartbeat_pump.py
Module of tests/kernel, split out because the directory page would be too large.
Prose pending.
tests/kernel/test_heartbeat_pump.py
source · 6 tests · 186 lines
Tests for kernel/heartbeat_pump.py — HeartbeatPump (SPEC-001, closes G1).
Covers: agents.volk_registry, core.base.traces, kernel.heartbeat_pump
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestHeartbeatPumpBeatOnce |
51 | |
| method | TestHeartbeatPumpBeatOnce.test_beat_once_records_all_rostered_volks |
53 | REQ-001-018: beat_once records a heartbeat for every rostered volk. |
| method | TestHeartbeatPumpBeatOnce.test_partial_failure_tolerated |
73 | REQ-001-017: an unregistered alias in the roster doesn't break the sweep. |
| method | TestHeartbeatPumpBeatOnce.test_beat_once_tolerates_probe_exception |
90 | REQ-001-017: an alias that makes the probe raise doesn't break the sweep. |
| class | TestHeartbeatPumpThreadLifecycle |
113 | |
| method | TestHeartbeatPumpThreadLifecycle.test_idle_volk_stays_healthy_under_pump |
115 | REQ-001-018: an idle-but-alive volk stays healthy under the pump (closes G1). |
| method | TestHeartbeatPumpThreadLifecycle.test_start_is_idempotent |
141 | start() called while already running does not spawn a second thread. |
| method | TestHeartbeatPumpThreadLifecycle.test_stop_joins_thread |
160 | REQ-001-017: stop() joins the beat thread and beating stops advancing. |