Skip to content

Add unit tests for pyamber Heartbeat #4703

Closed

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

Activity

  1. added theissue type on May 2, 2026
  2. added a commit that references this issue on May 3, 2026
    1654bb9
  3. added a commit that references this issue on May 3, 2026
    0c56819
  4. added a commit that references this issue on Jun 22, 2026
    9a4a966
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions