Skip to content

Commit 401a7f8

Browse files
committed
fix test on OTP 27
1 parent a41777a commit 401a7f8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/elixir_sense/core/introspection_test.exs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ defmodule ElixirSense.Core.IntrospectionTest do
5353
}
5454
] = get_callbacks_with_docs(:gen_statem) |> Enum.filter(&(&1.name == :callback_mode))
5555

56-
if ExUnitConfig.erlang_eep48_supported() do
57-
assert "- CallbackMode = " <> _ = summary
56+
if System.otp_release() |> String.to_integer() >= 23 do
57+
if System.otp_release() |> String.to_integer() >= 27 do
58+
assert "This function is" <> _ = summary
59+
else
60+
assert "- CallbackMode = " <> _ = summary
61+
end
5862
end
5963
end
6064

0 commit comments

Comments
 (0)