diff --git a/spec/lsp_spec.lua b/spec/lsp_spec.lua index 2ecbfd69..19da39e0 100644 --- a/spec/lsp_spec.lua +++ b/spec/lsp_spec.lua @@ -10,11 +10,15 @@ describe('LSP client API', function() if vim.fn.executable(ra_bin) ~= 0 then it('Can spin up rust-analyzer.', function() local lsp_start = stub(vim.lsp, 'start') + local notify_once = stub(vim, 'notify_once') + local notify = stub(vim, 'notify') vim.cmd.e('test.rs') vim.cmd.RustAnalyzer('start') -- TODO: Use something less flaky, e.g. a timeout uv.sleep(5000) assert.stub(lsp_start).was_called() + assert.stub(notify_once).was_not_called() + assert.stub(notify).was_not_called() end) end end)