Task Summary
amber/src/main/python/core/runnables/heartbeat.py currently has ~33% unit-test coverage. Add unit tests for Heartbeat covering URL parsing in __init__, the _check_heartbeat socket success and failure paths, and the early-exit branch of run when the stop event is already set. (The stop method calls os.kill(getpid(), SIGTERM) and is intentionally out of scope for unit tests.)
Task Type
Task Summary
amber/src/main/python/core/runnables/heartbeat.pycurrently has ~33% unit-test coverage. Add unit tests forHeartbeatcovering URL parsing in__init__, the_check_heartbeatsocket success and failure paths, and the early-exit branch ofrunwhen the stop event is already set. (Thestopmethod callsos.kill(getpid(), SIGTERM)and is intentionally out of scope for unit tests.)Task Type