You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
testing flame calls that involve the repo get hung up on the ownership process.
edit: simplified example
defmoduleMyAppTestdotest"flame accessing the db"doFLAME.call(MyPool,fn->Repo.all(MySchema)end)endend
raises
** (EXIT from #PID<0.544.0>) an exception was raised:
** (DBConnection.OwnershipError) cannot find ownership process for #PID<0.592.0>.
(ecto_sql 3.9.2) lib/ecto/adapters/sql.ex:910: Ecto.Adapters.SQL.raise_sql_call_error/1
(ecto_sql 3.9.2) lib/ecto/adapters/sql.ex:828: Ecto.Adapters.SQL.execute/6
(ecto 3.9.6) lib/ecto/repo/queryable.ex:229: Ecto.Repo.Queryable.execute/4
(ecto 3.9.6) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
(flame 0.1.7) lib/flame/runner.ex:408: anonymous fn/3 in FLAME.Runner.remote_call/4
this does not apply when async: false
The text was updated successfully, but these errors were encountered:
dustinfarris
changed the title
trouble testing: (DBConnection.OwnershipError) cannot find ownership process
can't test async: (DBConnection.OwnershipError) cannot find ownership process
Dec 17, 2023
testing flame calls that involve the repo get hung up on the ownership process.
edit: simplified example
raises
this does not apply when
async: false
The text was updated successfully, but these errors were encountered: