summaryrefslogtreecommitdiffstats
path: root/src/testdir/term_util.vim
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-12-31 11:44:57 +0000
committerBram Moolenaar <Bram@vim.org>2022-12-31 11:44:57 +0000
commitdbe6ef1036fd50fc837b76d4e1d862a9bbbcf09b (patch)
treeaac69019130b51bcd4471577d2be9af2eee1f1cb /src/testdir/term_util.vim
parent7b8db111e819bcb07cff6fc451584b0e3e0a49fd (diff)
patch 9.0.1118: sporadic test failures when using a terminal windowv9.0.1118
Problem: Sporadic test failures when using a terminal window. Solution: Adjust waiting times. (James McCoy, closes #11763)
Diffstat (limited to 'src/testdir/term_util.vim')
-rw-r--r--src/testdir/term_util.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/term_util.vim b/src/testdir/term_util.vim
index 98c9cfb40b..0f03731845 100644
--- a/src/testdir/term_util.vim
+++ b/src/testdir/term_util.vim
@@ -141,6 +141,9 @@ func StopVimInTerminal(buf, kill = 1)
call assert_equal("running", term_getstatus(a:buf))
+ " Wait for all the pending updates to terminal to complete
+ call TermWait(a:buf)
+
" CTRL-O : works both in Normal mode and Insert mode to start a command line.
" In Command-line it's inserted, the CTRL-U removes it again.
call term_sendkeys(a:buf, "\<C-O>:\<C-U>qa!\<cr>")