DynamicSupervisor and Ecto.Adapters.SQL.Sandbox problem

If I understand what you’re saying, you are using the code above and also setting async: true. This means the sandbox won’t enter shared mode and any process outside your test process will not be able to share its connection.