From 47e27a4f5b2b2ae20e20a51a6cf0f76078c28698 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 21 Aug 2019 02:32:20 +0200 Subject: tests: support msg with global_helpers.ok (#10820) Ref: https://github.com/neovim/neovim/pull/10768#discussion_r315904175 Co-Authored-By: Justin M. Keyes --- test/functional/api/proc_spec.lua | 7 ++++--- test/functional/api/server_requests_spec.lua | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test/functional/api') diff --git a/test/functional/api/proc_spec.lua b/test/functional/api/proc_spec.lua index e11e03203f..063d382790 100644 --- a/test/functional/api/proc_spec.lua +++ b/test/functional/api/proc_spec.lua @@ -4,8 +4,8 @@ local clear = helpers.clear local eq = helpers.eq local funcs = helpers.funcs local iswin = helpers.iswin +local neq = helpers.neq local nvim_argv = helpers.nvim_argv -local ok = helpers.ok local request = helpers.request local retry = helpers.retry local NIL = helpers.NIL @@ -63,8 +63,9 @@ describe('api', function() local pid = funcs.getpid() local pinfo = request('nvim_get_proc', pid) eq((iswin() and 'nvim.exe' or 'nvim'), pinfo.name) - ok(pinfo.pid == pid) - ok(type(pinfo.ppid) == 'number' and pinfo.ppid ~= pid) + eq(pinfo.pid, pid) + eq(type(pinfo.ppid), 'number') + neq(pinfo.ppid, pid) end) it('validates input', function() diff --git a/test/functional/api/server_requests_spec.lua b/test/functional/api/server_requests_spec.lua index dbe9f20412..ddd044a10f 100644 --- a/test/functional/api/server_requests_spec.lua +++ b/test/functional/api/server_requests_spec.lua @@ -169,8 +169,7 @@ describe('server -> client', function() if method == "notification" then eq('done!', eval('rpcrequest('..cid..', "nested")')) elseif method == "nested_done" then - -- this should never have been sent - ok(false) + ok(false, 'this should never have been sent') end end -- cgit