patch 9.0.0989: popupwin test is more flaky on MacOS

Problem:    Popupwin test is more flaky on MacOS.
Solution:   Use a longer wait time.
This commit is contained in:
Bram Moolenaar
2022-12-02 15:06:07 +00:00
parent b55ae8ce42
commit 9c8d12c811
2 changed files with 7 additions and 2 deletions

View File

@ -1197,8 +1197,11 @@ func Test_popup_time()
call assert_equal(0, popup_locate(1, 21)) call assert_equal(0, popup_locate(1, 21))
call assert_equal(0, popup_locate(2, 1)) 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 redraw
let line = join(map(range(1, 5), '1->screenstring(v:val)'), '') let line = join(map(range(1, 5), '1->screenstring(v:val)'), '')
call assert_equal('hello', line) call assert_equal('hello', line)
@ -1212,7 +1215,7 @@ func Test_popup_time()
let line = join(map(range(1, 30), 'screenstring(&lines, v:val)'), '') let line = join(map(range(1, 30), 'screenstring(&lines, v:val)'), '')
call assert_match('.*on the command line.*', line) call assert_match('.*on the command line.*', line)
sleep 700m exe 'sleep ' .. delay
redraw redraw
let line = join(map(range(1, 30), 'screenstring(&lines, v:val)'), '') let line = join(map(range(1, 30), 'screenstring(&lines, v:val)'), '')
call assert_notmatch('.*on the command line.*', line) call assert_notmatch('.*on the command line.*', line)

View File

@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
989,
/**/ /**/
988, 988,
/**/ /**/