aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua
diff options
context:
space:
mode:
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