Skip to content

Add unit tests for pyamber Heartbeat #4703

@Yicong-Huang

Description

@Yicong-Huang

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

  • Testing / QA

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions