Emails 0.4.1: No more database errors in your app's test runs
Emails 0.4.1 stops the PhoenixKit email module from filling a host app’s test runs with database errors. A running site sees no change.
When the module starts, it checks the delivery event trackers and sets up their Oban jobs. In a host app’s test suite that check ran outside the test database sandbox, so it could only fail, and every test run printed a DBConnection.OwnershipError. The check is now skipped when Oban is in a testing mode (:manual or :inline). Nothing is lost: in those modes Oban does not run the jobs the check would set up.
Full release notes: Emails 0.4.1
0.4.1 · 18 August 2026
Fixed
- Boot reconcile no longer runs while Oban is in a testing mode (
:manualor:inline). Previously the bootTaskunconditionally calledEventTrackerReconciler.reconcile/0, which writes viaOban.cancel_all_jobs/1from a process with no Ecto sandbox connection — under a host’s test suite this write could only fail, dumping aDBConnection.OwnershipErrorinto every test run. Nothing is lost by skipping it there: in a testing mode Oban does not execute the chains the reconcile would seed. (#36)
Emails 0.4.1. Install or update: {:phoenix_kit_emails, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.