towerops/test/towerops/application_test.exs
Graham McIntire 3b8e1ea639
Reliability improvements: Task.Supervisor, discovery retries, polling visibility
- Add Towerops.TaskSupervisor to supervision tree, replace bare spawn/1
  in agent channel with supervised tasks for polling data processing
- Change DiscoveryWorker from max_attempts: 1 to 3 with retryable error
  classification (transient errors retry, permanent errors discard)
- Name all 9 parallel polling tasks and log timeouts/crashes instead of
  silently dropping results via Stream.run()
- Add tests for TaskSupervisor presence and error classification
2026-02-09 16:05:30 -06:00

9 lines
224 B
Elixir

defmodule Towerops.ApplicationTest do
use ExUnit.Case, async: true
describe "supervision tree" do
test "Towerops.TaskSupervisor is running" do
assert Process.whereis(Towerops.TaskSupervisor)
end
end
end