diff src/testdir/test_terminal.vim @ 22904:a7c1a92bd13c v8.2.1999

patch 8.2.1999: terminal popup test sometimes fails Commit: https://github.com/vim/vim/commit/e6329e4c55cd81b6134820eab6a10b02c11c1277 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 16 21:10:34 2020 +0100 patch 8.2.1999: terminal popup test sometimes fails Problem: Terminal popup test sometimes fails. Solution: Wait for the popup to close.
author Bram Moolenaar <Bram@vim.org>
date Mon, 16 Nov 2020 21:15:04 +0100
parents 1bde09eef44a
children 696364caabea
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -1249,8 +1249,8 @@ func Test_terminal_popup_bufload()
   " must not have switched to another window
   call assert_equal(winid, win_getid())
 
-  call feedkeys("exit\<CR>", 'xt')
-  sleep 50m
+  call StopShellInTerminal(termbuf)
+  call WaitFor({-> win_getid() != winid})
   exe 'bwipe! ' .. newbuf
 endfunc