diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-13 11:23:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 11:23:40 +0200 |
commit | 2f71d4708e997454a0d05d51122a56146b89af92 (patch) | |
tree | a84c5cb8f02bee2ab6e3d67c3db5f50d594e4ee4 /test/functional/ex_cmds | |
parent | a68f5fccb3197116ff54898796486bcbc816ce10 (diff) | |
parent | e3281d992e1b9366d67a4b4399e3b5e11bb6c1cc (diff) | |
download | rneovim-2f71d4708e997454a0d05d51122a56146b89af92.tar.gz rneovim-2f71d4708e997454a0d05d51122a56146b89af92.tar.bz2 rneovim-2f71d4708e997454a0d05d51122a56146b89af92.zip |
Merge pull request #18902 from bfredl/fulexit
fix(tests): check for EOF in requests to nvim properly
Diffstat (limited to 'test/functional/ex_cmds')
-rw-r--r-- | test/functional/ex_cmds/mksession_spec.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/ex_cmds/mksession_spec.lua b/test/functional/ex_cmds/mksession_spec.lua index 8323d40e10..1553de4432 100644 --- a/test/functional/ex_cmds/mksession_spec.lua +++ b/test/functional/ex_cmds/mksession_spec.lua @@ -14,6 +14,7 @@ local pesc = helpers.pesc local rmdir = helpers.rmdir local sleep = helpers.sleep local meths = helpers.meths +local expect_exit = helpers.expect_exit local file_prefix = 'Xtest-functional-ex_cmds-mksession_spec' @@ -44,7 +45,7 @@ describe(':mksession', function() command('mksession '..session_file) -- Create a new test instance of Nvim. - command('qall!') + expect_exit(command, 'qall!') clear() -- Restore session. command('source '..session_file) @@ -113,7 +114,7 @@ describe(':mksession', function() if iswin() then sleep(100) -- Make sure all child processes have exited. end - command('qall!') + expect_exit(command, 'qall!') -- Create a new test instance of Nvim. clear() @@ -156,7 +157,7 @@ describe(':mksession', function() command('cd '..cwd_dir) command('mksession '..session_path) - command('qall!') + expect_exit(command, 'qall!') -- Create a new test instance of Nvim. clear() |