Fix runtime timeout

This commit is contained in:
Alexandre de Souza 2025-07-15 16:59:45 -03:00
parent cf21a3f72d
commit 3da2ed93d7
No known key found for this signature in database
GPG key ID: E39228FFBA346545
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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)