aboutsummaryrefslogtreecommitdiffstats
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
commite35a4db4984013d82c90bd99fa1cbb15396fa415 (patch)
tree39f2309dd6d7643daa5ac9a35796e245265cce91
parent33b9b2b91ec31f328dcd080832c3caf7a24cb93a (diff)
downloadprosody-e35a4db4984013d82c90bd99fa1cbb15396fa415.tar.gz
prosody-e35a4db4984013d82c90bd99fa1cbb15396fa415.zip
storagemanager: Fix unused variable in tests [luacheck]
-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");