aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core
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/core
parent0603eba6e713b2bd25cbbb55caf2342b0ccdece9 (diff)
downloadrneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.tar.gz
rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.tar.bz2
rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.zip
refactor(tests): use assert_alive() #15546
Diffstat (limited to 'test/functional/core')
-rw-r--r--test/functional/core/exit_spec.lua3
-rw-r--r--test/functional/core/startup_spec.lua3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/core/exit_spec.lua b/test/functional/core/exit_spec.lua
index 230b7f8e01..5e569a01d6 100644
--- a/test/functional/core/exit_spec.lua
+++ b/test/functional/core/exit_spec.lua
@@ -1,5 +1,6 @@
local helpers = require('test.functional.helpers')(after_each)
+local assert_alive = helpers.assert_alive
local command = helpers.command
local feed_command = helpers.feed_command
local eval = helpers.eval
@@ -53,7 +54,7 @@ describe(':cquit', function()
if redir_msg then
eq('\n' .. redir_msg, redir_exec(cmdline))
poke_eventloop()
- eq(2, eval("1+1")) -- Still alive?
+ assert_alive()
else
funcs.system({nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '--cmd', cmdline})
eq(exit_code, eval('v:shell_error'))
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index f3ab420603..7cddc72561 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -1,6 +1,7 @@
local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
+local assert_alive = helpers.assert_alive
local clear = helpers.clear
local command = helpers.command
local ok = helpers.ok
@@ -231,7 +232,7 @@ describe('startup', function()
it('does not crash if --embed is given twice', function()
clear{args={'--embed'}}
- eq(2, eval('1+1'))
+ assert_alive()
end)
it('does not crash when expanding cdpath during early_init', function()