Skip to content

Commit

Permalink
Fix a v1.1.0 compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Jun 15, 2016
1 parent 6fb9444 commit 4ded582
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/eternal_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule EternalTest do
owner = Eternal.owner(tab)
heir = Eternal.heir(tab)

GenServer.stop(owner)
stop(owner)

:timer.sleep(5)

Expand All @@ -39,7 +39,7 @@ defmodule EternalTest do
owner = Eternal.owner(tab)
heir = Eternal.heir(tab)

GenServer.stop(heir)
stop(heir)

:timer.sleep(5)

Expand Down Expand Up @@ -104,4 +104,8 @@ defmodule EternalTest do
tab
end

defp stop(pid) do
:gen.stop(pid, :normal, :infinity)
end

end

0 comments on commit 4ded582

Please sign in to comment.