Skip to content

Commit 7062107

Browse files
committed
exclude tests
1 parent 5b6b459 commit 7062107

File tree

6 files changed

+30
-8
lines changed

6 files changed

+30
-8
lines changed

apps/language_server/test/providers/code_action/replace_remote_function_test.exs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ defmodule ElixirLS.LanguageServer.Providers.CodeAction.ReplaceRemoteFunctionTest
183183
end
184184
end
185185

186+
if Version.match?(System.version(), ">= 1.15.0") do
186187
test "when aliased" do
187188
message = """
188189
ElixirLS.Test.RemoteFunction.fou/1 is undefined or private. Did you mean:
@@ -199,7 +200,9 @@ defmodule ElixirLS.LanguageServer.Providers.CodeAction.ReplaceRemoteFunctionTest
199200

200201
assert result == "alias ElixirLS.Test.RemoteFunction\nRemoteFunction.foo(42)"
201202
end
203+
end
202204

205+
if Version.match?(System.version(), ">= 1.15.0") do
203206
test "when aliased with a custom name" do
204207
message = """
205208
ElixirLS.Test.RemoteFunction.fou/1 is undefined or private. Did you mean:
@@ -216,6 +219,7 @@ defmodule ElixirLS.LanguageServer.Providers.CodeAction.ReplaceRemoteFunctionTest
216219

217220
assert result == "alias ElixirLS.Test.RemoteFunction, as: Remote\nRemote.foo(42)"
218221
end
222+
end
219223
end
220224

221225
describe "fixes captured function" do
@@ -313,6 +317,7 @@ defmodule ElixirLS.LanguageServer.Providers.CodeAction.ReplaceRemoteFunctionTest
313317
end
314318
end
315319

320+
if Version.match?(System.version(), ">= 1.15.0") do
316321
test "when aliased" do
317322
message = """
318323
ElixirLS.Test.RemoteFunction.fou/1 is undefined or private. Did you mean:
@@ -329,7 +334,9 @@ defmodule ElixirLS.LanguageServer.Providers.CodeAction.ReplaceRemoteFunctionTest
329334

330335
assert result == "alias ElixirLS.Test.RemoteFunction\n&RemoteFunction.foo/1"
331336
end
337+
end
332338

339+
if Version.match?(System.version(), ">= 1.15.0") do
333340
test "when aliased with a custom name" do
334341
message = """
335342
ElixirLS.Test.RemoteFunction.fou/1 is undefined or private. Did you mean:
@@ -347,4 +354,5 @@ defmodule ElixirLS.LanguageServer.Providers.CodeAction.ReplaceRemoteFunctionTest
347354
assert result == "alias ElixirLS.Test.RemoteFunction, as: Remote\n&Remote.foo/1"
348355
end
349356
end
357+
end
350358
end

apps/language_server/test/providers/completion/suggestions_test.exs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2127,7 +2127,11 @@ defmodule ElixirLS.LanguageServer.Providers.Completion.SuggestionTest do
21272127
|> Enum.filter(fn s -> s.type == :attribute end)
21282128
|> Enum.map(fn %{name: name} -> name end)
21292129

2130-
assert list == ["@macrocallback", "@moduledoc", "@myattr"]
2130+
if Version.match?(System.version(), ">= 1.15.0") do
2131+
assert list == ["@macrocallback", "@moduledoc", "@myattr"]
2132+
else
2133+
assert list == ["@macrocallback", "@moduledoc"]
2134+
end
21312135

21322136
list =
21332137
Suggestion.suggestions(buffer, 5, 7)

apps/language_server/test/providers/execute_command/expand_macro_test.exs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,19 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.ExpandMacroTest do
3737
}
3838
})
3939

40-
assert res == %{
41-
"expand" => "abc\n",
42-
"expandAll" => "abc\n",
43-
"expandOnce" => "abc\n"
44-
}
40+
if Version.match?(System.version(), ">= 1.15.0") do
41+
assert res == %{
42+
"expand" => "abc\n",
43+
"expandAll" => "abc\n",
44+
"expandOnce" => "abc\n"
45+
}
46+
else
47+
assert res == %{
48+
"expand" => "abc\n",
49+
"expandAll" => "abc()\n",
50+
"expandOnce" => "abc\n"
51+
}
52+
end
4553
end
4654

4755
test "expands macro" do

apps/language_server/test/providers/references/locator_test.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@ defmodule ElixirLS.LanguageServer.Providers.References.LocatorTest do
810810
assert [] == references
811811
end
812812

813+
if Version.match?(System.version(), ">= 1.15.0") do
813814
test "find references for metadata calls on variable or attribute",
814815
%{trace: trace} do
815816
buffer = """
@@ -852,6 +853,7 @@ defmodule ElixirLS.LanguageServer.Providers.References.LocatorTest do
852853
}
853854
] = references
854855
end
856+
end
855857

856858
test "find references for the correct arity version for metadata calls with cursor over module",
857859
%{trace: trace} do

dep_versions.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[
2-
elixir_sense: "4ef2bc0403b8d31f80c06cd6164b104d480f6c86",
2+
elixir_sense: "f2b6172e9f7d8da2a1039888e355cc7b7757c2b5",
33
dialyxir_vendored: "462e599aa7004a32cfa548cc715c9c59e95dacaf",
44
jason_v: "c81537e2a5e1acacb915cf339fe400357e3c2aaa",
55
erl2ex_vendored: "073ac6b9a44282e718b6050c7b27cedf9217a12a",

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"benchee": {:hex, :benchee, "1.1.0", "f3a43817209a92a1fade36ef36b86e1052627fd8934a8b937ac9ab3a76c43062", [:mix], [{:deep_merge, "~> 1.0", [hex: :deep_merge, repo: "hexpm", optional: false]}, {:statistex, "~> 1.0", [hex: :statistex, repo: "hexpm", optional: false]}], "hexpm", "7da57d545003165a012b587077f6ba90b89210fd88074ce3c60ce239eb5e6d93"},
33
"deep_merge": {:hex, :deep_merge, "1.0.0", "b4aa1a0d1acac393bdf38b2291af38cb1d4a52806cf7a4906f718e1feb5ee961", [:mix], [], "hexpm", "ce708e5f094b9cd4e8f2be4f00d2f4250c4095be93f8cd6d018c753894885430"},
44
"dialyxir_vendored": {:git, "https://github.com/elixir-lsp/dialyxir.git", "462e599aa7004a32cfa548cc715c9c59e95dacaf", [ref: "462e599aa7004a32cfa548cc715c9c59e95dacaf"]},
5-
"elixir_sense": {:git, "https://github.com/elixir-lsp/elixir_sense.git", "4ef2bc0403b8d31f80c06cd6164b104d480f6c86", [ref: "4ef2bc0403b8d31f80c06cd6164b104d480f6c86"]},
5+
"elixir_sense": {:git, "https://github.com/elixir-lsp/elixir_sense.git", "f2b6172e9f7d8da2a1039888e355cc7b7757c2b5", [ref: "f2b6172e9f7d8da2a1039888e355cc7b7757c2b5"]},
66
"erl2ex_vendored": {:git, "https://github.com/elixir-lsp/erl2ex.git", "073ac6b9a44282e718b6050c7b27cedf9217a12a", [ref: "073ac6b9a44282e718b6050c7b27cedf9217a12a"]},
77
"erlex_vendored": {:git, "https://github.com/elixir-lsp/erlex.git", "82db0e82ee4896491bc26dec99f5d795f03ab9f4", [ref: "82db0e82ee4896491bc26dec99f5d795f03ab9f4"]},
88
"jason_v": {:git, "https://github.com/elixir-lsp/jason.git", "c81537e2a5e1acacb915cf339fe400357e3c2aaa", [ref: "c81537e2a5e1acacb915cf339fe400357e3c2aaa"]},

0 commit comments

Comments
 (0)