Software /
code /
prosody
Changeset
9551:7421379ba464
util.promise tests: Fix declared but unused variables
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 25 Oct 2018 15:33:46 +0100 |
parents | 9550:98de4c2e2627 |
children | 9552:87e25d352de3 |
files | spec/util_promise_spec.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/spec/util_promise_spec.lua Thu Oct 25 15:24:52 2018 +0100 +++ b/spec/util_promise_spec.lua Thu Oct 25 15:33:46 2018 +0100 @@ -183,7 +183,7 @@ 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 @@ 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");