Skip to content

Commit

Permalink
fix test on OTP 27
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Jun 2, 2024
1 parent a41777a commit 401a7f8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/elixir_sense/core/introspection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ defmodule ElixirSense.Core.IntrospectionTest do
}
] = get_callbacks_with_docs(:gen_statem) |> Enum.filter(&(&1.name == :callback_mode))

if ExUnitConfig.erlang_eep48_supported() do
assert "- CallbackMode = " <> _ = summary
if System.otp_release() |> String.to_integer() >= 23 do
if System.otp_release() |> String.to_integer() >= 27 do
assert "This function is" <> _ = summary
else
assert "- CallbackMode = " <> _ = summary
end
end
end

Expand Down

0 comments on commit 401a7f8

Please sign in to comment.