aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/core/process_spec.lua1
-rw-r--r--tests/server_spec.lua24
2 files changed, 0 insertions, 25 deletions
diff --git a/tests/core/process_spec.lua b/tests/core/process_spec.lua
index d27d3186..277f082b 100644
--- a/tests/core/process_spec.lua
+++ b/tests/core/process_spec.lua
@@ -1,6 +1,5 @@
local spy = require "luassert.spy"
local process = require "nvim-lsp-installer.core.process"
-local async = require "plenary.async"
describe("process.attempt", function()
it("should attempt job variants until first successful one", function()
diff --git a/tests/server_spec.lua b/tests/server_spec.lua
index d1ecbb6a..f8c3206f 100644
--- a/tests/server_spec.lua
+++ b/tests/server_spec.lua
@@ -52,28 +52,4 @@ describe("server", function()
assert.is_false(srv:is_installed())
end)
)
-
- it(
- "should be able to run sync installer functions",
- async_test(function()
- local srv = ServerGenerator {
- name = "async_installer_fixture",
- root_dir = server.get_server_root_path "async_installer_fixture",
- async = false,
- installer = function(_, callback)
- vim.defer_fn(function()
- callback(true)
- end, 130)
- end,
- }
- local start = timestamp()
- srv:install()
- a.sleep(100)
- assert.wait_for(function()
- assert.is_true(srv:is_installed())
- end)
- local stop = timestamp()
- assert.is_true(stop - start >= 100)
- end)
- )
end)