test: deal with RPC call causing Nvim to exit later

This commit is contained in:
zeertzjq
2022-07-19 19:36:29 +08:00
parent 366e90cdc8
commit 72dfd57e5f
4 changed files with 24 additions and 13 deletions

View File

@@ -4,6 +4,7 @@ local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local clear, command, eq = helpers.clear, helpers.command, helpers.eq
local eval, exc_exec, neq = helpers.eval, helpers.exc_exec, helpers.neq
local expect_exit = helpers.expect_exit
local feed = helpers.feed
local pcall_err = helpers.pcall_err
@@ -275,6 +276,6 @@ describe('argument list commands', function()
2 more files to edit. Quit anyway? |
[Y]es, (N)o: ^ |
]])
feed('Y')
expect_exit(100, feed, 'Y')
end)
end)