livebook/config/test.exs
Jonatan Kłosko 8c91a1f788
Introduce abstraction for app deployment and permanent apps (#2524)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2024-03-26 20:20:07 +01:00

36 lines
1,010 B
Elixir

import Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :livebook, LivebookWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warning
# Disable authentication mode during test
config :livebook,
authentication_mode: :disabled,
check_completion_data_interval: 300,
iframe_port: 4003
data_path = Path.expand("tmp/livebook_data/test")
# Clear data path for tests
if File.exists?(data_path) do
File.rm_rf!(data_path)
end
config :livebook,
data_path: data_path,
feature_flags: [deployment_groups: true],
agent_name: "chonky-cat"
config :livebook, Livebook.Apps.Manager, retry_backoff_base_ms: 0
# Use longnames when running tests in CI, so that no host resolution is required,
# see https://github.com/livebook-dev/livebook/pull/173#issuecomment-819468549
if System.get_env("CI") == "true" do
config :livebook, :node, {:longnames, :"livebook@127.0.0.1"}
end