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/buffer_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/buffer_spec.lua')
-rw-r--r-- | test/functional/terminal/buffer_spec.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/terminal/buffer_spec.lua b/test/functional/terminal/buffer_spec.lua index c0af932e68..103ae59b8e 100644 --- a/test/functional/terminal/buffer_spec.lua +++ b/test/functional/terminal/buffer_spec.lua @@ -1,5 +1,6 @@ local helpers = require('test.functional.helpers')(after_each) local thelpers = require('test.functional.terminal.helpers') +local assert_alive = helpers.assert_alive local feed, clear, nvim = helpers.feed, helpers.clear, helpers.nvim local poke_eventloop = helpers.poke_eventloop local eval, feed_command, source = helpers.eval, helpers.feed_command, helpers.source @@ -300,7 +301,7 @@ describe('No heap-buffer-overflow when using', function() feed('$') -- Let termopen() modify the buffer feed_command('call termopen("echo")') - eq(2, eval('1+1')) -- check nvim still running + assert_alive() feed_command('bdelete!') end) end) @@ -310,6 +311,6 @@ describe('No heap-buffer-overflow when', function() feed_command('set nowrap') feed_command('autocmd TermOpen * startinsert') feed_command('call feedkeys("4000ai\\<esc>:terminal!\\<cr>")') - eq(2, eval('1+1')) + assert_alive() end) end) |