Skip to content

Commit c79977a

Browse files
committed
patch 8.0.1163: popup test is flaky
Problem: Popup test is flaky. Solution: Add a WaitFor() and fix another.
1 parent 660b85e commit c79977a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/testdir/test_popup.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,15 @@ func Test_popup_and_window_resize()
649649
call term_wait(g:buf, 100)
650650
call term_sendkeys(g:buf, "\<c-v>")
651651
call term_wait(g:buf, 100)
652+
call WaitFor('term_getline(g:buf, 1) =~ "^!"')
652653
call assert_match('^!\s*$', term_getline(g:buf, 1))
653654
exe 'resize +' . (h - 1)
654655
call term_wait(g:buf, 100)
655656
redraw!
656-
call WaitFor('"" == term_getline(g:buf, 1)')
657+
call WaitFor('term_getline(g:buf, 1) == ""')
657658
call assert_equal('', term_getline(g:buf, 1))
658659
sleep 100m
659-
call WaitFor('"^!" =~ term_getline(g:buf, term_getcursor(g:buf)[0] + 1)')
660+
call WaitFor('term_getline(g:buf, term_getcursor(g:buf)[0] + 1) =~ "^!"')
660661
call assert_match('^!\s*$', term_getline(g:buf, term_getcursor(g:buf)[0] + 1))
661662
bwipe!
662663
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1163,
764766
/**/
765767
1162,
766768
/**/

0 commit comments

Comments
 (0)