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

@@ -4,6 +4,7 @@ local clear, feed, command = helpers.clear, helpers.feed, helpers.command
local eq = helpers.eq
local insert = helpers.insert
local poke_eventloop = helpers.poke_eventloop
local expect_exit = helpers.expect_exit
describe('Screen', function()
local screen
@@ -1003,7 +1004,7 @@ describe('Screen', function()
-- test/functional/ui/syntax_conceal_spec.lua.
describe('concealed line after window scroll', function()
after_each(function()
command(':qall!')
expect_exit(command, ':qall!')
os.remove('Xcolesearch')
end)