Mercurial > vim
changeset 20970:736d6e6f55f6 v8.2.1036
patch 8.2.1036: popupwin test fails sometimes
Commit: https://github.com/vim/vim/commit/373c65104e0991724cb57910dfb3e5c276e2d7e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 22 19:24:23 2020 +0200
patch 8.2.1036: popupwin test fails sometimes
Problem: Popupwin test fails sometimes.
Solution: Use WaitForAssert() instead of a sleep.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 22 Jun 2020 19:30:04 +0200 |
parents | 23e89ca0b70f |
children | d906d18f4ffb |
files | src/testdir/test_popupwin.vim src/version.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -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