test: fix tests

This commit is contained in:
Folke Lemaitre 2024-06-26 14:29:00 +02:00
parent 0614ca6ca6
commit bbe136bda6
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 24 additions and 23 deletions

View file

@ -32,7 +32,8 @@ describe("runner", function()
package.loaded["lazy.manage.task.test"]["async" .. i] = {
---@param task LazyTask
run = function(task)
task:schedule(function()
task:async(function()
coroutine.yield()
table.insert(runs, { plugin = task.plugin.name, task = task.name })
end)
end,