diff --git a/spec/utils/async_spec.lua b/spec/utils/async_spec.lua index d4356fa..2a83b4b 100644 --- a/spec/utils/async_spec.lua +++ b/spec/utils/async_spec.lua @@ -38,10 +38,10 @@ describe("Throttle", function() fn() fn() fn() - vim.wait(1000, function() + vim.wait(500, function() return count == 3 end) local ms_passed = vim.uv.now() - start - assert.is.truthy(ms_passed > 1000) + assert.is.truthy(ms_passed > 500) end) end)