mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-15 12:25:31 +08:00
efdbf67f59
And move the relevant configurations to settings.
17 lines
631 B
Elixir
17 lines
631 B
Elixir
# Start manager on the current node and configure it not to
|
|
# terminate automatically, so there is no race condition
|
|
# when starting/stopping Embedded runtimes in parallel
|
|
Livebook.Runtime.ErlDist.NodeManager.start(
|
|
auto_termination: false,
|
|
unload_modules_on_termination: false
|
|
)
|
|
|
|
# Disable autosaving
|
|
Livebook.Storage.current().insert(:settings, "global", autosave_path: nil)
|
|
|
|
erl_docs_available? = Code.fetch_docs(:gen_server) != {:error, :chunk_not_found}
|
|
|
|
exclude = []
|
|
exclude = if erl_docs_available?, do: exclude, else: Keyword.put(exclude, :erl_docs, true)
|
|
|
|
ExUnit.start(assert_receive_timeout: 1_000, exclude: exclude)
|