Skip to content

Commit

Permalink
Make OTP version check more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
dvic committed Jun 16, 2022
1 parent 1701646 commit 9820ee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/support/test_utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ defmodule ETS.TestUtils do
end

def otp25? do
:erlang.system_info(:otp_release) |> to_string() |> String.starts_with?("25")
{version, ""} = :erlang.system_info(:otp_release) |> to_string() |> Integer.parse()
version >= 25
end

defp wait_until_dead(pid) do
Expand Down

0 comments on commit 9820ee2

Please sign in to comment.