2021-10-14 04:25:33 +08:00
|
|
|
# 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
|
|
|
|
)
|
|
|
|
|
2021-04-21 01:34:17 +08:00
|
|
|
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)
|
|
|
|
|
2021-10-14 04:25:33 +08:00
|
|
|
ExUnit.start(assert_receive_timeout: 1_000, exclude: exclude)
|