Skip to content

Commit

Permalink
Fix test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Jun 6, 2024
1 parent 6abc20f commit 87daaba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/support/test_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ defmodule Livebook.TestHelpers do
# This test uses the Embedded runtime, so we can target the
# process by name
Process.register(self(), unquote(name))
receive do: (:stop -> :ok)
receive do: (:finish -> :ok)
end
|> Macro.to_string()

ack_fun = fn ->
send(Process.whereis(name), :pong)
continue_fun = fn ->
send(Process.whereis(name), :finish)
end

{code, ack_fun}
{code, continue_fun}
end

@doc """
Expand Down

0 comments on commit 87daaba

Please sign in to comment.