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:
parent
e9cf51e57f
commit
f3d2010e93
@ -6,6 +6,8 @@ config :chess, ChessWeb.Endpoint,
|
||||
http: [port: 4001],
|
||||
server: true
|
||||
|
||||
config :chess, :sql_sandbox, true
|
||||
|
||||
# Print only warnings and errors during test
|
||||
config :logger, level: :warn
|
||||
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
defmodule ChessWeb.Endpoint do
|
||||
use Phoenix.Endpoint, otp_app: :chess
|
||||
|
||||
if Application.get_env(:chess, :sql_sandbox) do
|
||||
plug Phoenix.Ecto.SQL.Sandbox
|
||||
end
|
||||
|
||||
socket "/socket", ChessWeb.UserSocket
|
||||
|
||||
# Serve at "/" the static files from "priv/static" directory.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user