aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_async_spec.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-22 23:15:04 +0100
committerKim Alvefur <zash@zash.se>2018-03-22 23:15:04 +0100
commit98482848cae3900932653ef3808203b03a950131 (patch)
tree9a30c28220b04fe92a824a88bbc76f050ff40591 /spec/util_async_spec.lua
parentb0d2e9a3dec88b7376dcbce49aa69d21a0b2087d (diff)
downloadprosody-98482848cae3900932653ef3808203b03a950131.tar.gz
prosody-98482848cae3900932653ef3808203b03a950131.zip
util.async: Use wrapper for once runner (thanks luacheck)
Diffstat (limited to 'spec/util_async_spec.lua')
-rw-r--r--spec/util_async_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/util_async_spec.lua b/spec/util_async_spec.lua
index 7c1696b5..959ad65b 100644
--- a/spec/util_async_spec.lua
+++ b/spec/util_async_spec.lua
@@ -601,6 +601,7 @@ describe("util.async", function()
end);
async.once(f);
assert.spy(f).was.called();
+ assert.spy(f).was.called_with();
end);
it("should propagate errors", function ()
local function should_error()