diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-19 19:36:29 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-19 19:41:07 +0800 |
commit | 72dfd57e5f45357db36155b79d7873cd0fc3dfaf (patch) | |
tree | 73e80635ccc97ffcf41c711fae4a7a8db68c1a1e /test/functional/legacy/arglist_spec.lua | |
parent | 366e90cdc84a4b698028eb73d590297faec799f2 (diff) | |
download | rneovim-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.lua | 3 |
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) |