Skip to content

Commit

Permalink
remove nil config test as it breaks build stability
Browse files Browse the repository at this point in the history
it accidentally enables dialyzer
  • Loading branch information
lukaszsamson committed Oct 8, 2023
1 parent 587f83b commit f4c9ffd
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions apps/language_server/test/server_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -111,39 +111,6 @@ defmodule ElixirLS.LanguageServer.ServerTest do
end)
end

test "handles nil configuration", %{
server: server
} do
in_fixture(__DIR__, "clean", fn ->
Server.receive_packet(
server,
initialize_req(1, root_uri(), %{
"workspace" => %{
"configuration" => true
}
})
)

assert_receive(%{"id" => 1, "result" => %{"capabilities" => %{}}}, 1000)
Server.receive_packet(server, notification("initialized"))
uri = root_uri()

assert_receive(
%{
"id" => 1,
"method" => "workspace/configuration",
"params" => %{"items" => [%{"scopeUri" => ^uri, "section" => "elixirLS"}]}
},
1000
)

JsonRpc.receive_packet(response(1, [nil]))

assert :sys.get_state(server).mix_env == "test"
wait_until_compiled(server)
end)
end

test "gets configuration after workspace/didChangeConfiguration notification if client supports it",
%{
server: server
Expand Down

0 comments on commit f4c9ffd

Please sign in to comment.