diff options
| author | Micah Halter <micah@mehalter.com> | 2024-10-22 13:40:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-22 19:40:16 +0200 |
| commit | 87638e71c83100980f932714ea62ea82a972c95b (patch) | |
| tree | 02589ab41eea924ec65276ae1737bb9061193cb3 /tests | |
| parent | fix: update required nvim version to >= 0.9.0 (#478) (diff) | |
| download | mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar.gz mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar.bz2 mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar.lz mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar.xz mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar.zst mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.zip | |
fix: fix importing server config definitions from lspconfig (#468)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/helpers/lua/luassertx.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/helpers/lua/luassertx.lua b/tests/helpers/lua/luassertx.lua index bc02aca..06c5718 100644 --- a/tests/helpers/lua/luassertx.lua +++ b/tests/helpers/lua/luassertx.lua @@ -1,6 +1,7 @@ local a = require "mason-core.async" local assert = require "luassert" local match = require "luassert.match" +local uv = vim.uv or vim.loop local function wait_for(_, arguments) ---@type (fun()): Function to execute until it does not error. @@ -9,14 +10,14 @@ local function wait_for(_, arguments) local timeout = arguments[2] timeout = timeout or 15000 - local start = vim.loop.hrtime() + local start = uv.hrtime() local is_ok, err repeat is_ok, err = pcall(assertions_fn) if not is_ok then a.sleep(math.min(timeout, 100)) end - until is_ok or ((vim.loop.hrtime() - start) / 1e6) > timeout + until is_ok or ((uv.hrtime() - start) / 1e6) > timeout if not is_ok then error(err) |
