diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-22 19:24:23 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-22 19:24:23 +0200 |
commit | 373c65104e0991724cb57910dfb3e5c276e2d7e7 (patch) | |
tree | 30abc3e1593feab3f318efa2409d700adc3d952f /src/testdir/test_popupwin.vim | |
parent | 7633fe595e6a27d6bb376548ff89f0dcce481600 (diff) | |
download | vim-git-373c65104e0991724cb57910dfb3e5c276e2d7e7.tar.gz |
patch 8.2.1036: popupwin test fails sometimesv8.2.1036
Problem: Popupwin test fails sometimes.
Solution: Use WaitForAssert() instead of a sleep.
Diffstat (limited to 'src/testdir/test_popupwin.vim')
-rw-r--r-- | src/testdir/test_popupwin.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim index 42f4256c3..80a14595e 100644 --- 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 |