openclaw-windows-node/tests
github-actions[bot] cf027fb269
test: add ParseChannelHealth status-derivation and property-parsing coverage (#174)
ParseChannelHealth has six distinct status derivation paths based on the
combination of running/configured/linked/probeOk/hasError flags, plus
separate property-parsing for error/authAge/type/IsLinked fields. Only
the 'status field takes priority' path was previously tested.

Adds 13 new tests covering:

Status derivation:
- running=true → 'running'
- lastError present (non-null) → 'error'
- lastError=null excluded from hasError → falls through to 'ready'
- configured && probe.ok=true → 'ready'
- configured && linked=true → 'ready' + IsLinked=true
- nothing set → 'not configured'
- error priority over running flag

Property parsing:
- error, authAge, type fields populated correctly
- linked=false → IsLinked=false
- probe.ok=false + configured=true → 'ready' (second ready clause)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-20 01:36:09 -04:00
..
OpenClaw.Shared.Tests test: add ParseChannelHealth status-derivation and property-parsing coverage (#174) 2026-04-20 01:36:09 -04:00
OpenClaw.Tray.Tests eng: add tests/Directory.Build.props to DRY up shared test config 2026-04-09 17:39:59 -07:00
Directory.Build.props eng: add tests/Directory.Build.props to DRY up shared test config 2026-04-09 17:39:59 -07:00