diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-02-10 20:51:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 20:51:36 +0100 |
commit | b8ad1bfe8bc23ed5ffbfe43df5fda3501f1d2802 (patch) | |
tree | ea341bee19c2202cbe94ccefb2afeba953af713e /test/functional/api | |
parent | 4c64cbe99f2616a1d1126257da8d40773f4adba1 (diff) | |
parent | 0837980db4958baca96449869d31120f349f3500 (diff) | |
download | rneovim-b8ad1bfe8bc23ed5ffbfe43df5fda3501f1d2802.tar.gz rneovim-b8ad1bfe8bc23ed5ffbfe43df5fda3501f1d2802.tar.bz2 rneovim-b8ad1bfe8bc23ed5ffbfe43df5fda3501f1d2802.zip |
Merge pull request #22077 from bfredl/neolua_client
refactor(tests): integrate lua-client into core and use core for functionaltests
Diffstat (limited to 'test/functional/api')
-rw-r--r-- | test/functional/api/rpc_fixture.lua | 7 | ||||
-rw-r--r-- | test/functional/api/server_requests_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/api/vim_spec.lua | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/test/functional/api/rpc_fixture.lua b/test/functional/api/rpc_fixture.lua index 94df751363..c860a6da59 100644 --- a/test/functional/api/rpc_fixture.lua +++ b/test/functional/api/rpc_fixture.lua @@ -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 diff --git a/test/functional/api/server_requests_spec.lua b/test/functional/api/server_requests_spec.lua index e6bfc6b64f..cb273aedba 100644 --- a/test/functional/api/server_requests_spec.lua +++ b/test/functional/api/server_requests_spec.lua @@ -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, diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 8fcdd9620b..fc550f5861 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -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) |