Software /
code /
prosody
Changeset
11951:6d9e3f541830
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
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 26 Nov 2021 22:38:07 +0100 |
parents | 11950:d2a9e95fd27b |
children | 11952:b78a341e72e7 |
files | spec/util_promise_spec.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/spec/util_promise_spec.lua Fri Nov 26 22:28:37 2021 +0100 +++ b/spec/util_promise_spec.lua Fri Nov 26 22:38:07 2021 +0100 @@ -673,7 +673,7 @@ 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");