Skip to content

Commit

Permalink
feat(test/async): make tests run faster
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Jun 26, 2024
1 parent 81af952 commit aaa2c0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/utils/async_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit aaa2c0f

Please sign in to comment.