# HG changeset patch # User Bram Moolenaar # Date 1605557704 -3600 # Node ID a7c1a92bd13cc1b0256a44e96e2b6828a5c381a1 # Parent 83cc3b2e7bb646ea94a7cc08a92909f1482babf0 patch 8.2.1999: terminal popup test sometimes fails Commit: https://github.com/vim/vim/commit/e6329e4c55cd81b6134820eab6a10b02c11c1277 Author: Bram Moolenaar 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. diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim --- 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\", 'xt') - sleep 50m + call StopShellInTerminal(termbuf) + call WaitFor({-> win_getid() != winid}) exe 'bwipe! ' .. newbuf endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1999, +/**/ 1998, /**/ 1997,