2016-06-24 4 views
1

私はa libraryにEctoとPostgrexを使用しています(Postgrexはテストでのみ使用されています)。Ecto 1からEcto 2にライブラリをアップデートした後、 "shutdown:child:DBConnection.Ownership.Managerを開始できませんでした"

エクト2にエクト1からアップグレードした後、テストスイートは、このエラーを与え始め:

$ mix test 
Compiling 4 files (.ex) 
Generated ectoo app 
** (EXIT from #PID<0.46.0>) shutdown: failed to start child: DBConnection.Ownership.Manager 
    ** (EXIT) exited in: GenServer.call(DBConnection.Ownership.PoolSupervisor, {:start_child, [#PID<0.175.0>, Postgrex.Protocol, [pool: DBConnection.Poolboy, types: true, hostname: "localhost", types: true, otp_app: :ectoo, repo: Ectoo.Repo, adapter: Ecto.Adapters.Postgres, database: "ectoo_test", username: "henrik", pool_timeout: 5000, timeout: 15000, adapter: Ecto.Adapters.Postgres, database: "ectoo_test", username: "henrik", extensions: [{Ecto.Adapters.Postgres.DateTime, []}, {Postgrex.Extensions.JSON, [library: nil]}], port: 5432]]}, :infinity) 
     ** (EXIT) no process 

任意のアイデア?

答えて

3

テストを実行するときにpostgrexアプリが実行されていることを確認してこの問題を修正しました。 mix.exsで

def application do 
    [applications: applications(Mix.env)] 
end 

defp applications(:test), do: [:logger, :postgrex] 
defp applications(_), do: [:logger] 
関連する問題