mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
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:
parent
bdc838bf11
commit
cc84e83895
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue