summaryrefslogtreecommitdiff
path: root/server/test/definition
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/definition')
-rw-r--r--server/test/definition/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/test/definition/init.lua b/server/test/definition/init.lua
index 19e353cc..f2b2833c 100644
--- a/server/test/definition/init.lua
+++ b/server/test/definition/init.lua
@@ -45,8 +45,8 @@ function TEST(script)
local vm = buildVM(ast)
assert(vm)
- local result = core.findResult(vm, pos)
- local positions = core.definition(vm, result, nil)
+ local source = core.findSource(vm, pos)
+ local positions = core.definition(vm, source, nil)
if positions then
assert(founded(target, positions))
else