Orchestrata Ultimate › Tests › Reference › scripts › test__irc_watchdog_coverage

Tests reference — tests/scripts/test__irc_watchdog_coverage.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test__irc_watchdog_coverage.py

source · 5 tests · 277 lines

Tests for scripts/_irc_watchdog.py — the IRC-listener watchdog (180s health

Kind Name Line Description
function test_is_listener_alive_detects_a_matching_process 158 A real process whose cmdline contains _irc_listen.py must be detected.
function test_is_listener_alive_false_when_pgrep_missing 177 The except arm: with pgrep genuinely absent from PATH, subprocess.run
function test_start_listener_spawns_a_real_process_that_runs 211 SCRIPT redirected to a real no-op script: start_listener must return a
function test_main_starts_and_restarts_listener_when_dead 232 pgrep absent -> detector fail-closed -> initial start + loop restarts.
function test_main_keeps_a_running_listener_without_restarting 251 With a live matching process, main() reports it running and never restarts.