aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-26 22:38:07 +0100
committerKim Alvefur <zash@zash.se>2021-11-26 22:38:07 +0100
commitcc84e838954d9e5d988e0a07f8367a27b590d1c7 (patch)
treef062f1e76b58891d5ab656f8df954b73d0e13228
parentbdc838bf11c944293b87e1b3e8731554b746f7eb (diff)
downloadprosody-cc84e838954d9e5d988e0a07f8367a27b590d1c7.tar.gz
prosody-cc84e838954d9e5d988e0a07f8367a27b590d1c7.zip
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
-rw-r--r--spec/util_promise_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util_promise_spec.lua b/spec/util_promise_spec.lua
index 2fd89d03..597b56f8 100644
--- a/spec/util_promise_spec.lua
+++ b/spec/util_promise_spec.lua
@@ -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");