# HG changeset patch # User Kim Alvefur # Date 1637962687 -3600 # Node ID 6d9e3f5418303e8111509586bf78bb7d07d3be9d # Parent d2a9e95fd27b763f820930723db286693bc9e062 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 diff -r d2a9e95fd27b -r 6d9e3f541830 spec/util_promise_spec.lua --- 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");