1
0
forked from aniani/vim

patch 8.2.1036: popupwin test fails sometimes

Problem:    Popupwin test fails sometimes.
Solution:   Use WaitForAssert() instead of a sleep.
This commit is contained in:
Bram Moolenaar
2020-06-22 19:24:23 +02:00
parent 7633fe595e
commit 373c65104e
2 changed files with 5 additions and 1 deletions

View File

@@ -2454,9 +2454,11 @@ func Test_popupwin_terminal_buffer()
call term_sendkeys(termbuf2, "exit\<CR>")
" Exiting shell closes popup window
let pupwin = win_getid()
call feedkeys("exit\<CR>", 'xt')
" Wait for shell to exit
sleep 100m
call WaitForAssert({-> assert_notequal(pupwin, win_getid())})
call feedkeys(":quit\<CR>", 'xt')
call assert_equal(origwin, win_getid())
endfunc

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1036,
/**/
1035,
/**/