mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-06 13:04:53 +08:00
Fix test helper
This commit is contained in:
parent
6abc20f472
commit
87daabaf60
1 changed files with 4 additions and 4 deletions
|
@ -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 """
|
||||
|
|
Loading…
Add table
Reference in a new issue