We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69f5170 commit 8ff8bccCopy full SHA for 8ff8bcc
1 file changed
tests/unit/timer_spec.lua
@@ -335,18 +335,18 @@ describe('Timer', function()
335
336
-- Start, wait for ticks, then stop
337
timer:start()
338
- vim.wait(30, function()
+ assert.is_true(vim.wait(1000, function()
339
return tick_count >= 2
340
- end)
+ end))
341
timer:stop()
342
343
local count_after_stop = tick_count
344
345
-- Restart and verify it works again
346
347
348
return tick_count > count_after_stop + 1
349
350
351
assert.is_true(tick_count > count_after_stop + 1)
352
assert.is_true(timer:is_running())
0 commit comments