towerops/test/towerops/profiles
Graham McIntire b1c803e1d2 test: cut runtime on slow tests, fix time-sensitive flake
Performance:
- HealthController: honor `:timeout` from `:redis` config (was hardcoded
  2s) so the 503-when-unreachable test exits immediately
- DevicePollerBranches: drop `collect_events` window 1500ms → 100ms
  (PubSub broadcasts are synchronous from `run_perform`)
- Towerops.Unused: cache xref analysis in `:persistent_term` keyed by
  BEAM mtimes so repeated `mix unused` invocations skip re-analysis
- DiscoveryWorker: make wait_loop interval configurable via
  `:discovery_wait_interval_ms` (25ms in tests vs 500ms in prod)
- ProfileWatcher: configurable `:profile_reloader` so tests can stub
  the YAML reload instead of paying the full disk-load cost
- PingExecutor: tag the loopback test `:network` (it shells out to
  `ping`); coverage already provided by 4 other `:network`-tagged tests

Flake fix:
- FrequencyChange tests used hardcoded `~U[2026-05-09 12:00:00Z]`,
  which now falls outside the rule's 24h lookback window. Switched to
  `DateTime.utc_now()` so scans stay inside the window regardless of
  clock progression.
2026-05-10 10:39:36 -05:00
..
device_oid_test.exs Add comprehensive test coverage for core context modules 2026-01-19 14:38:34 -06:00
device_profile_test.exs Add comprehensive test coverage for core context modules 2026-01-19 14:38:34 -06:00
mib_cache_test.exs test: GaiiaReconciliationLive + ActivityFeedLive helpers and events 2026-05-08 13:39:01 -05:00
profile_watcher_test.exs test: cut runtime on slow tests, fix time-sensitive flake 2026-05-10 10:39:36 -05:00
sensor_oid_test.exs Add comprehensive test coverage for core context modules 2026-01-19 14:38:34 -06:00
yaml_profiles_test.exs optimize-slow-tests (#193) 2026-03-27 17:05:29 -05:00