util.promise: Fix test

Could not reproduce locally but it complained in CI that
> spec/util_promise_spec.lua:676: Cannot spy on type 'nil', only on functions or callable elements
This commit is contained in:
Kim Alvefur 2021-11-26 22:38:07 +01:00
parent bdc838bf11
commit cc84e83895

View file

@ -673,7 +673,7 @@ describe("util.promise", function ()
local next_tick = spy.new(function (f)
f();
end)
local cb = spy.new();
local cb = spy.new(function () end);
promise.set_nexttick(next_tick);
promise.new(function (y, _)
y("okay");