fix: unreliable "checkhealth completions" test

ref https://github.com/neovim/neovim/issues/19596

    FAILED   test/functional/plugin/health_spec.lua @ 37: :checkhealth completions can be listed via getcompletion()
    test/functional/plugin/health_spec.lua:40: Expected objects to be the same.
    Passed in:
    (string) 'provider.node'
    Expected:
    (string) 'provider.clipboard'

    stack traceback:
            test/functional/plugin/health_spec.lua:40: in function <test/functional/plugin/health_spec.lua:37>
This commit is contained in:
Justin M. Keyes 2024-04-22 02:43:24 +02:00
parent 9912a4c81b
commit f112ac73bd

View File

@ -377,7 +377,9 @@ M._complete = function()
end)
-- vim.health is this file, which is not a healthcheck
unique['vim'] = nil
return vim.tbl_keys(unique)
local rv = vim.tbl_keys(unique)
table.sort(rv)
return rv
end
--- Runs the specified healthchecks.