diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-09-01 09:42:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 09:42:53 -0700 |
commit | 6751d6254b35d216a86817cd414d5d06e3ff641d (patch) | |
tree | a2d6f016fb0b610cd4573477b8d133cca64fb871 /test/functional/terminal/ex_terminal_spec.lua | |
parent | 0603eba6e713b2bd25cbbb55caf2342b0ccdece9 (diff) | |
download | rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.tar.gz rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.tar.bz2 rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.zip |
refactor(tests): use assert_alive() #15546
Diffstat (limited to 'test/functional/terminal/ex_terminal_spec.lua')
-rw-r--r-- | test/functional/terminal/ex_terminal_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua index 4b512605e1..707c355069 100644 --- a/test/functional/terminal/ex_terminal_spec.lua +++ b/test/functional/terminal/ex_terminal_spec.lua @@ -1,5 +1,6 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') +local assert_alive = helpers.assert_alive local clear, poke_eventloop, nvim = helpers.clear, helpers.poke_eventloop, helpers.nvim local nvim_dir, source, eq = helpers.nvim_dir, helpers.source, helpers.eq local feed = helpers.feed @@ -215,7 +216,7 @@ describe(':terminal (with fake shell)', function() -- handler), :terminal cleanup is pending on the main-loop. -- This write should be ignored (not crash, #5445). feed('iiYYYYYYY') - eq(2, eval("1+1")) -- Still alive? + assert_alive() end) it('works with findfile()', function() |