aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-03-11 16:07:36 +0000
committerMatthew Wild <mwild1@gmail.com>2020-03-11 16:07:36 +0000
commite15b284dc80c208bdec60a2bb2ad8939822418fc (patch)
tree39f2309dd6d7643daa5ac9a35796e245265cce91 /spec
parentd669797472629e4876d295a67f76ac045ddb6d30 (diff)
downloadprosody-e15b284dc80c208bdec60a2bb2ad8939822418fc.tar.gz
prosody-e15b284dc80c208bdec60a2bb2ad8939822418fc.zip
storagemanager: Fix unused variable in tests [luacheck]
Diffstat (limited to 'spec')
-rw-r--r--spec/core_storagemanager_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/core_storagemanager_spec.lua b/spec/core_storagemanager_spec.lua
index 69afd87a..dd80f4b8 100644
--- a/spec/core_storagemanager_spec.lua
+++ b/spec/core_storagemanager_spec.lua
@@ -64,6 +64,7 @@ describe("storagemanager", function ()
local sql_it = backend_config.sql and it or pending;
+
describe("key-value stores", function ()
-- These tests rely on being executed in order, disable any order
-- randomization for this block
@@ -156,7 +157,7 @@ describe("storagemanager", function ()
assert.is_function(store.delete_key);
assert(store:set("user9999b", "foo", "hello"));
- local ret, err = store:delete_key("bar");
+ assert(store:delete_key("bar"));
-- Ensure key was deleted
do
local ret, err = store:get("user9999b", "bar");