diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-04-22 02:43:24 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2024-04-22 02:43:24 +0200 |
commit | f112ac73bd340707173db4d28660e76aa96b36de (patch) | |
tree | 6c153f0c1d1ff1ebc36a466e904c933ccee18b28 /runtime/lua/vim/health.lua | |
parent | 9912a4c81b0856200f44a38e99d38eae44cef5c9 (diff) | |
download | rneovim-f112ac73bd340707173db4d28660e76aa96b36de.tar.gz rneovim-f112ac73bd340707173db4d28660e76aa96b36de.tar.bz2 rneovim-f112ac73bd340707173db4d28660e76aa96b36de.zip |
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>
Diffstat (limited to 'runtime/lua/vim/health.lua')
-rw-r--r-- | runtime/lua/vim/health.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/health.lua b/runtime/lua/vim/health.lua index 8326214604..d72a32b541 100644 --- a/runtime/lua/vim/health.lua +++ b/runtime/lua/vim/health.lua @@ -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. |