|
Some checks failed
Build and Push / Build and Push Docker Image (push) Has been cancelled
Replace the non-idiomatic :auto sandbox mode with :manual, eliminating the root cause of stale data across test runs. The :auto mode let any process auto-checkout and commit outside test transactions — Oban in testing:inline already disables plugins/queues, so :auto was never needed. Changes: - test_helper: Sandbox.mode(Repo, :manual); drop manual app boot (mix now starts the app idiomatically), drop --no-start alias, drop table-cleanup loop - DataCase: single reset_test_state/0 consolidates GridCache.clear, ScoreCache.clear, score-file wipe, and default HTTP stubs; drop the :auto-restore on_exit hack; setup_sandbox now just start_owner - ConnCase: delegates shared reset to DataCase, removes duplicate cache clears and stub installs - config: pool Ecto.Adapters.SQL.Sandbox (idiomatic canonical form) Note: GridCache/ScoreCache are globally-registered GenServers, so the architecturally clean per-test start_supervised! approach conflicts with async:true (parallel tests can't register the same name). The centralized clear in reset_test_state is the practical compromise — one place, documented, single call. |
||
|---|---|---|
| .. | ||
| admin_task_worker_test.exs | ||
| backfill_enqueue_worker_test.exs | ||
| canadian_sounding_fetch_worker_test.exs | ||
| common_volume_radar_worker_test.exs | ||
| contact_import_worker_test.exs | ||
| contact_position_backfill_worker_test.exs | ||
| contact_weather_enqueue_worker_test.exs | ||
| gefs_fetch_worker_test.exs | ||
| grid_cache_prune_worker_test.exs | ||
| hrdps_grid_worker_test.exs | ||
| hrrr_native_grid_worker_test.exs | ||
| iemre_fetch_worker_test.exs | ||
| ionosphere_fetch_worker_test.exs | ||
| mechanism_classify_worker_test.exs | ||
| narr_fetch_worker_test.exs | ||
| nexrad_worker_test.exs | ||
| partition_maintenance_worker_test.exs | ||
| propagation_grid_worker_test.exs | ||
| propagation_prune_worker_test.exs | ||
| pskr_calibration_worker_test.exs | ||
| pskr_recalibration_worker_test.exs | ||
| radar_frame_worker_test.exs | ||
| rover_mission_backfill_worker_test.exs | ||
| rover_mission_reconcile_worker_test.exs | ||
| rover_path_profile_worker_test.exs | ||
| solar_index_worker_test.exs | ||
| space_weather_fetch_worker_test.exs | ||
| station_elevation_worker_test.exs | ||
| terrain_profile_worker_test.exs | ||
| user_home_qth_lookup_worker_test.exs | ||
| weather_fetch_worker_test.exs | ||