aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-11-22 23:41:33 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-11-22 23:41:33 +0000
commit5858739fec90975fb2067374b06999dc8344597d (patch)
tree98676be6714d6e55fcc450afbb95c16124ecefbc /test/lua
parente6d344ee0610f4331067cdcaa7fc76ffa99c5eaf (diff)
downloadrspamd-5858739fec90975fb2067374b06999dc8344597d.tar.gz
rspamd-5858739fec90975fb2067374b06999dc8344597d.zip
[Minor] Fix tests and invocation
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/unit/selectors.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lua/unit/selectors.lua b/test/lua/unit/selectors.lua
index 4ac2c7bcb..c2fe4d7bd 100644
--- a/test/lua/unit/selectors.lua
+++ b/test/lua/unit/selectors.lua
@@ -35,8 +35,9 @@ context("Selectors test", function()
end)
local function check_selector(selector_string)
- local sels = lua_selectors.parse_selector(cfg, selector_string)
- local elts = lua_selectors.process_selectors(task, sels)
+ local sels = lua_selectors.create_selector_closure_fn(nil, cfg, selector_string, nil,
+ function(_, res, _) return res end)
+ local elts = sels(task)
return elts
end