Software /
code /
prosody
Changeset
10678:c9251d74a112
storagemanager: Fix unused variable in tests [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 11 Mar 2020 16:07:36 +0000 |
parents | 10677:0054aec3e8c5 |
children | 10679:b50b1eae711c |
files | spec/core_storagemanager_spec.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/spec/core_storagemanager_spec.lua Wed Mar 11 15:57:53 2020 +0000 +++ b/spec/core_storagemanager_spec.lua Wed Mar 11 16:07:36 2020 +0000 @@ -64,6 +64,7 @@ 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 @@ 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");