summaryrefslogtreecommitdiff
path: root/test/plugins/ffi
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugins/ffi')
-rw-r--r--test/plugins/ffi/test.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/plugins/ffi/test.lua b/test/plugins/ffi/test.lua
index 2a232192..68cec156 100644
--- a/test/plugins/ffi/test.lua
+++ b/test/plugins/ffi/test.lua
@@ -8,16 +8,15 @@ local template = require 'config.template'
template['Lua.runtime.version'].default = 'LuaJIT'
-
---@async
local function TestBuilder()
- local builder = require 'plugins.ffi'.initBuilder()
+ local builder = require 'core.command.reloadFFIMeta'
files.setText(TESTURI, [[
local ffi = require 'ffi'
ffi.cdef 'void test();'
]])
-
- builder(TESTURI)
+ local uri = ws.getFirstScope().uri
+ builder(uri)
end
---@async