mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(tests): fixes for using vim.mpack and more ASAN
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user