1import Config
2
3# Configure your database
4#
5# The MIX_TEST_PARTITION environment variable can be used
6# to provide built-in test partitioning in CI environment.
7# Run `mix help test` for more information.
8config :comet, Comet.Repo,
9 username: "postgres",
10 password: "postgres",
11 hostname: "localhost",
12 database: "comet_test#{System.get_env("MIX_TEST_PARTITION")}",
13 pool: Ecto.Adapters.SQL.Sandbox,
14 pool_size: System.schedulers_online() * 2
15
16# We don't run a server during test. If one is required,
17# you can enable the server option below.
18config :comet, CometWeb.Endpoint,
19 http: [ip: {127, 0, 0, 1}, port: 4002],
20 secret_key_base: "eaG5CrPmVserxnUlu8DyG8I6i3m3TBDOi8fsKn2niwYUMhjps0YkWWMGRnoSXvGf",
21 server: false
22
23# Print only warnings and errors during test
24config :logger, level: :warning
25
26# Initialize plugs at runtime for faster test compilation
27config :phoenix, :plug_init_mode, :runtime