Skip to content

Commit afaae90

Browse files
committed
test(timer): resolution too tight for GHA mac
1 parent d18ecfa commit afaae90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/unit/timer_spec.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('Timer', function()
5454
it('starts a repeating timer', function()
5555
local tick_count = 0
5656
timer = Timer.new({
57-
interval = 10,
57+
interval = 100,
5858
on_tick = function()
5959
tick_count = tick_count + 1
6060
end,
@@ -64,7 +64,7 @@ describe('Timer', function()
6464
assert.is_true(timer:is_running())
6565

6666
-- Wait for multiple ticks
67-
vim.wait(80, function()
67+
vim.wait(500, function()
6868
return tick_count >= 3
6969
end)
7070

@@ -367,4 +367,3 @@ describe('Timer', function()
367367
end)
368368
end)
369369
end)
370-

0 commit comments

Comments
 (0)