mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-15 20:37:55 +08:00
5dea204fc9
* Bump Elixir on the CI * Start permanent node manager in tests * Adjust timeouts * Make sure random node cookies are alphanumeric
14 lines
534 B
Elixir
14 lines
534 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
|
|
)
|
|
|
|
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)
|