mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
test: adjust timer_spec
This commit is contained in:
parent
d4750100b0
commit
a494910aa1
@ -145,8 +145,9 @@ describe('timers', function()
|
|||||||
local count2 = eval("g:val")
|
local count2 = eval("g:val")
|
||||||
-- when count is eval:ed after timer_stop this should be non-racy
|
-- when count is eval:ed after timer_stop this should be non-racy
|
||||||
eq(count, count2)
|
eq(count, count2)
|
||||||
assert(3 <= count and count <= 7,
|
assert((3 <= count and count <= load_adjust(7)),
|
||||||
'expected (3 <= count <= 7), got: '..tostring(count))
|
string.format('expected (3 <= count <= %s), got: %s',
|
||||||
|
load_adjust(7), tostring(count)))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('can be stopped from the handler', function()
|
it('can be stopped from the handler', function()
|
||||||
|
Loading…
Reference in New Issue
Block a user