aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/arglist_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-19 19:36:29 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-19 19:41:07 +0800
commit72dfd57e5f45357db36155b79d7873cd0fc3dfaf (patch)
tree73e80635ccc97ffcf41c711fae4a7a8db68c1a1e /test/functional/legacy/arglist_spec.lua
parent366e90cdc84a4b698028eb73d590297faec799f2 (diff)
downloadrneovim-72dfd57e5f45357db36155b79d7873cd0fc3dfaf.tar.gz
rneovim-72dfd57e5f45357db36155b79d7873cd0fc3dfaf.tar.bz2
rneovim-72dfd57e5f45357db36155b79d7873cd0fc3dfaf.zip
test: deal with RPC call causing Nvim to exit later
Diffstat (limited to 'test/functional/legacy/arglist_spec.lua')
-rw-r--r--test/functional/legacy/arglist_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/legacy/arglist_spec.lua b/test/functional/legacy/arglist_spec.lua
index 8379e426e0..f90da16d7b 100644
--- a/test/functional/legacy/arglist_spec.lua
+++ b/test/functional/legacy/arglist_spec.lua
@@ -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)