diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-08 23:22:50 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-06-13 10:15:44 +0200 |
commit | e3281d992e1b9366d67a4b4399e3b5e11bb6c1cc (patch) | |
tree | fe0a8377115e946faf1c0328285331b4fd6c8a4c /test/functional/core/fileio_spec.lua | |
parent | dd8b6094c03362cc60d627ce709a4a0f9825b86a (diff) | |
download | rneovim-e3281d992e1b9366d67a4b4399e3b5e11bb6c1cc.tar.gz rneovim-e3281d992e1b9366d67a4b4399e3b5e11bb6c1cc.tar.bz2 rneovim-e3281d992e1b9366d67a4b4399e3b5e11bb6c1cc.zip |
fix(tests): check for EOF on exit of nvim properly
Diffstat (limited to 'test/functional/core/fileio_spec.lua')
-rw-r--r-- | test/functional/core/fileio_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua index c68bc18eed..bc025771d1 100644 --- a/test/functional/core/fileio_spec.lua +++ b/test/functional/core/fileio_spec.lua @@ -16,12 +16,13 @@ local trim = helpers.trim local currentdir = helpers.funcs.getcwd local iswin = helpers.iswin local assert_alive = helpers.assert_alive +local expect_exit = helpers.expect_exit describe('fileio', function() before_each(function() end) after_each(function() - command(':qall!') + expect_exit(command, ':qall!') os.remove('Xtest_startup_shada') os.remove('Xtest_startup_file1') os.remove('Xtest_startup_file1~') |