Skip to content

Commit

Permalink
Formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Mar 8, 2024
1 parent 82f6073 commit f5b7dc3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/flame_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,15 @@ defmodule FLAME.FLAMETest do
test "normal execution", %{} = config do
sim_long_running(config.test, 100)
parent = self()

assert FLAME.cast(config.test, fn ->
send(parent, {:ran, self()})
receive do
:continue -> :ok
end
end) == :ok
send(parent, {:ran, self()})

receive do
:continue -> :ok
end
end) == :ok

assert_receive {:ran, cast_pid}
Process.monitor(cast_pid)
send(cast_pid, :continue)
Expand Down Expand Up @@ -221,8 +224,9 @@ defmodule FLAME.FLAMETest do

assert FLAME.cast(config.test, fn ->
send(parent, {:ran, self()})

receive do
:continue -> exit(:boom)
:continue -> exit(:boom)
end
end) == :ok

Expand Down

0 comments on commit f5b7dc3

Please sign in to comment.