Skip to content

Commit

Permalink
patch 9.0.0989: popupwin test is more flaky on MacOS
Browse files Browse the repository at this point in the history
Problem:    Popupwin test is more flaky on MacOS.
Solution:   Use a longer wait time.
  • Loading branch information
brammool committed Dec 2, 2022
1 parent b55ae8c commit 9c8d12c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/testdir/test_popupwin.vim
Expand Up @@ -1197,8 +1197,11 @@ func Test_popup_time()
call assert_equal(0, popup_locate(1, 21))
call assert_equal(0, popup_locate(2, 1))

sleep 700m
" Mac is usually a bit slow
let delay = has('mac') ? '900m' : '700m'
exe 'sleep ' .. delay
redraw

let line = join(map(range(1, 5), '1->screenstring(v:val)'), '')
call assert_equal('hello', line)

Expand All @@ -1212,7 +1215,7 @@ func Test_popup_time()
let line = join(map(range(1, 30), 'screenstring(&lines, v:val)'), '')
call assert_match('.*on the command line.*', line)

sleep 700m
exe 'sleep ' .. delay
redraw
let line = join(map(range(1, 30), 'screenstring(&lines, v:val)'), '')
call assert_notmatch('.*on the command line.*', line)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
989,
/**/
988,
/**/
Expand Down

0 comments on commit 9c8d12c

Please sign in to comment.