fix(tests): fixes for using vim.mpack and more ASAN

This commit is contained in:
bfredl
2023-02-01 12:54:22 +01:00
parent d6279f9392
commit f8f82901cd
6 changed files with 23 additions and 19 deletions

View File

@@ -4,9 +4,8 @@
package.path = arg[1]
package.cpath = arg[2]
local mpack = require('mpack')
local StdioStream = require('nvim.stdio_stream')
local Session = require('nvim.session')
local StdioStream = require'test.client.uv_stream'.StdioStream
local Session = require'test.client.session'
local stdio_stream = StdioStream.open()
local session = Session.new(stdio_stream)
@@ -19,7 +18,7 @@ local function on_request(method, args)
return "done!"
elseif method == "exit" then
session:stop()
return mpack.NIL
return vim.NIL
end
end

View File

@@ -237,7 +237,7 @@ describe('server -> client', function()
\ }
]])
meths.set_var("args", {
helpers.test_lua_prg,
nvim_prog, '-ll',
'test/functional/api/rpc_fixture.lua',
package.path,
package.cpath,

View File

@@ -59,7 +59,7 @@ describe('API', function()
-- XXX: This must be the last one, else next one will fail:
-- "Packer instance already working. Use another Packer ..."
matches("can't serialize object$",
matches("can't serialize object of type .$",
pcall_err(request, nil))
end)