fix(tests): check for EOF on exit of nvim properly

This commit is contained in:
bfredl
2022-06-08 23:22:50 +02:00
parent dd8b6094c0
commit e3281d992e
16 changed files with 74 additions and 56 deletions

View File

@@ -16,6 +16,7 @@ local insert = helpers.insert
local command = helpers.command
local write_file = helpers.write_file
local curbufmeths = helpers.curbufmeths
local expect_exit = helpers.expect_exit
local function ls_dir_sorted(dirname)
local files = {}
@@ -43,7 +44,7 @@ describe("'directory' option", function()
clear()
end)
teardown(function()
command('qall!')
expect_exit(command, 'qall!')
helpers.rmdir('Xtest.je')
helpers.rmdir('Xtest2')
os.remove('Xtest1')