chore(ha-heartbeat-liveness): mark unit test tasks 4.1-4.2 complete

All required unit test cases already implemented in prior tasks.
This commit is contained in:
Rongsong Shen 2026-06-01 15:43:29 +00:00
parent 12216f1165
commit aceadf0357

View file

@ -58,7 +58,7 @@
- _Boundary: config_repl.c, ha.c (ha_on_primary_ctrl_fd_rdhup)_
- [ ] 4. Validation: unit and integration tests
- [ ] 4.1 (P) Unit tests for standby liveness poll
- [x] 4.1 (P) Unit tests for standby liveness poll
- Test `liveness_poll_fn` fires `ha_on_primary_ctrl_fd_rdhup` when `now - last_activity >= heartbeat_timeout_ms`
- Test `liveness_poll_fn` re-arms (no failover) when `now - last_activity < heartbeat_timeout_ms`
- Test `liveness_poll_fn` with `cancelled = 1` is a no-op (no failover, no re-arm)