aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/vim_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-09-01 09:42:53 -0700
committerGitHub <noreply@github.com>2021-09-01 09:42:53 -0700
commit6751d6254b35d216a86817cd414d5d06e3ff641d (patch)
treea2d6f016fb0b610cd4573477b8d133cca64fb871 /test/functional/api/vim_spec.lua
parent0603eba6e713b2bd25cbbb55caf2342b0ccdece9 (diff)
downloadrneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.tar.gz
rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.tar.bz2
rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.zip
refactor(tests): use assert_alive() #15546
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r--test/functional/api/vim_spec.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index 36a84e1f45..9aad8a1319 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -2,6 +2,7 @@ local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local fmt = string.format
+local assert_alive = helpers.assert_alive
local NIL = helpers.NIL
local clear, nvim, eq, neq = helpers.clear, helpers.nvim, helpers.eq, helpers.neq
local command = helpers.command
@@ -58,7 +59,7 @@ describe('API', function()
eq({'notification', 'nvim_error_event',
{error_types.Exception.id, 'Invalid method: nvim_bogus'}}, next_msg())
-- error didn't close channel.
- eq(2, eval('1+1'))
+ assert_alive()
end)
it('failed async request emits nvim_error_event', function()
@@ -68,7 +69,7 @@ describe('API', function()
{error_types.Exception.id, 'Vim:E492: Not an editor command: bogus'}},
next_msg())
-- error didn't close channel.
- eq(2, eval('1+1'))
+ assert_alive()
end)
it('does not set CA_COMMAND_BUSY #7254', function()