mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 03:54:24 +08:00
Fix runtime timeout
This commit is contained in:
parent
cf21a3f72d
commit
3da2ed93d7
2 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ defmodule Livebook.Runtime.ErlDist.NodeManagerTest do
|
|||
# We use a standalone runtime, so that we have an isolated node
|
||||
# with its own node manager
|
||||
pid = Runtime.Standalone.new() |> Runtime.connect()
|
||||
assert_receive {:runtime_connect_done, ^pid, {:ok, runtime}}
|
||||
assert_receive {:runtime_connect_done, ^pid, {:ok, runtime}}, 5_000
|
||||
%{node: node, server_pid: server1} = runtime
|
||||
|
||||
Runtime.take_ownership(runtime)
|
||||
|
|
|
@ -6,7 +6,7 @@ defmodule Livebook.Runtime.StandaloneTest do
|
|||
describe "Runtime.connect/1" do
|
||||
test "starts a new Elixir runtime in distribution mode and ties its lifetime to the NodeManager process" do
|
||||
pid = Runtime.Standalone.new() |> Runtime.connect()
|
||||
assert_receive {:runtime_connect_done, ^pid, {:ok, runtime}}
|
||||
assert_receive {:runtime_connect_done, ^pid, {:ok, runtime}}, 5_000
|
||||
%{node: node} = runtime
|
||||
Runtime.take_ownership(runtime)
|
||||
|
||||
|
@ -24,7 +24,7 @@ defmodule Livebook.Runtime.StandaloneTest do
|
|||
|
||||
test "loads necessary modules and starts manager process" do
|
||||
pid = Runtime.Standalone.new() |> Runtime.connect()
|
||||
assert_receive {:runtime_connect_done, ^pid, {:ok, runtime}}
|
||||
assert_receive {:runtime_connect_done, ^pid, {:ok, runtime}}, 5_000
|
||||
%{node: node} = runtime
|
||||
Runtime.take_ownership(runtime)
|
||||
|
||||
|
@ -35,7 +35,7 @@ defmodule Livebook.Runtime.StandaloneTest do
|
|||
|
||||
test "Runtime.disconnect/1 makes the node terminate" do
|
||||
pid = Runtime.Standalone.new() |> Runtime.connect()
|
||||
assert_receive {:runtime_connect_done, ^pid, {:ok, runtime}}
|
||||
assert_receive {:runtime_connect_done, ^pid, {:ok, runtime}}, 5_000
|
||||
%{node: node} = runtime
|
||||
Runtime.take_ownership(runtime)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue