diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-10-25 15:33:46 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-10-25 15:33:46 +0100 |
commit | c74e396c0c51adf8ec1c2240d988b5e90c3866b8 (patch) | |
tree | 2694710ced1ccbe73cde15be834d1cf4ef677523 /spec/util_promise_spec.lua | |
parent | dd74a38b22fe0424ea2fd29ac2ec5cbb3bef46dc (diff) | |
download | prosody-c74e396c0c51adf8ec1c2240d988b5e90c3866b8.tar.gz prosody-c74e396c0c51adf8ec1c2240d988b5e90c3866b8.zip |
util.promise tests: Fix declared but unused variables
Diffstat (limited to 'spec/util_promise_spec.lua')
-rw-r--r-- | spec/util_promise_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/util_promise_spec.lua b/spec/util_promise_spec.lua index 90043346..586f1fe9 100644 --- a/spec/util_promise_spec.lua +++ b/spec/util_promise_spec.lua @@ -183,7 +183,7 @@ describe("util.promise", function () assert.spy(cb).was_called(0); local cb2 = spy.new(function () end); - local p3 = p2:catch(cb2); + p2:catch(cb2); assert.spy(cb2).was_called(0); end); @@ -195,7 +195,7 @@ describe("util.promise", function () local cb2 = spy.new(function () end); local cb2_err = spy.new(function () end); - local p3 = p2:next(cb2, cb2_err); + p2:next(cb2, cb2_err); assert.spy(cb2).was_called(0); assert.spy(cb2_err).was_called(1); assert.spy(cb2_err).was_called_with("foo"); |