1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Enable concurrent Wallaby tests

This commit is contained in:
Daniel Barber 2018-03-03 20:43:45 -05:00
parent e9cf51e57f
commit f3d2010e93
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,8 @@ config :chess, ChessWeb.Endpoint,
http: [port: 4001], http: [port: 4001],
server: true server: true
config :chess, :sql_sandbox, true
# Print only warnings and errors during test # Print only warnings and errors during test
config :logger, level: :warn config :logger, level: :warn

View File

@ -1,6 +1,10 @@
defmodule ChessWeb.Endpoint do defmodule ChessWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :chess use Phoenix.Endpoint, otp_app: :chess
if Application.get_env(:chess, :sql_sandbox) do
plug Phoenix.Ecto.SQL.Sandbox
end
socket "/socket", ChessWeb.UserSocket socket "/socket", ChessWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory. # Serve at "/" the static files from "priv/static" directory.