comparison src/testdir/term_util.vim @ 31571:c51111774ea8 v9.0.1118

patch 9.0.1118: sporadic test failures when using a terminal window Commit: https://github.com/vim/vim/commit/dbe6ef1036fd50fc837b76d4e1d862a9bbbcf09b Author: James McCoy <jamessan@jamessan.com> Date: Sat Dec 31 11:44:57 2022 +0000 patch 9.0.1118: sporadic test failures when using a terminal window Problem: Sporadic test failures when using a terminal window. Solution: Adjust waiting times. (James McCoy, closes https://github.com/vim/vim/issues/11763)
author Bram Moolenaar <Bram@vim.org>
date Sat, 31 Dec 2022 13:00:05 +0100
parents a864e75257dd
children a2dd770c854a
comparison
equal deleted inserted replaced
31570:19f08bc8a43a 31571:c51111774ea8
139 " Using a terminal to run Vim is always considered flaky. 139 " Using a terminal to run Vim is always considered flaky.
140 let g:test_is_flaky = 1 140 let g:test_is_flaky = 1
141 141
142 call assert_equal("running", term_getstatus(a:buf)) 142 call assert_equal("running", term_getstatus(a:buf))
143 143
144 " Wait for all the pending updates to terminal to complete
145 call TermWait(a:buf)
146
144 " CTRL-O : works both in Normal mode and Insert mode to start a command line. 147 " CTRL-O : works both in Normal mode and Insert mode to start a command line.
145 " In Command-line it's inserted, the CTRL-U removes it again. 148 " In Command-line it's inserted, the CTRL-U removes it again.
146 call term_sendkeys(a:buf, "\<C-O>:\<C-U>qa!\<cr>") 149 call term_sendkeys(a:buf, "\<C-O>:\<C-U>qa!\<cr>")
147 150
148 " Wait for all the pending updates to terminal to complete 151 " Wait for all the pending updates to terminal to complete