fix: start :stream_data application in test_helper.exs
Some checks failed
Build and Push / Build and Push Docker Image (push) Failing after 13m13s

The Elixir 1.20 code path workaround adds stream_data's ebin but
doesn't start the application. stream_data's  macro calls
Application.fetch_env!(:stream_data, :initial_size), which requires
the application to be loaded/started.
This commit is contained in:
Graham McIntire 2026-08-04 14:59:31 -05:00
parent d5a8425b8b
commit 607d3d3775

View file

@ -38,6 +38,12 @@ end
# DBConnection.Ownership from the app env and initializes with it. # DBConnection.Ownership from the app env and initializes with it.
{:ok, _} = Application.ensure_all_started(:microwaveprop) {:ok, _} = Application.ensure_all_started(:microwaveprop)
# stream_data is a test-only dep — its ebin is on the code path from the
# wildcard above, but the application isn't started. `check all` etc.
# call Application.fetch_env!(:stream_data, :initial_size), which needs
# the app to be loaded.
Application.ensure_all_started(:stream_data)
# :auto mode lets every process (including background Tasks started by # :auto mode lets every process (including background Tasks started by
# Application.init and Oban workers) auto-checkout from the sandbox. # Application.init and Oban workers) auto-checkout from the sandbox.
# DataCase.setup_sandbox/1 still calls start_owner!/2 for per-test # DataCase.setup_sandbox/1 still calls start_owner!/2 for per-test