Skip to content

Commit 24078e3

Browse files
ychinchrisbra
authored andcommitted
patch 9.1.0860: tests: mouse_shape tests use hard code sleep value
Problem: tests: mouse_shape tests use hard code sleep value (Bram Moolenaar) Solution: Use WaitForAssert() instead (Yee Cheng Chin) related: #12157 closes: #16042 Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 13a6605 commit 24078e3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/testdir/test_normal.vim

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3948,8 +3948,7 @@ func Test_mouse_shape_after_failed_change()
39483948
END
39493949
call writefile(lines, 'Xmouseshape.vim', 'D')
39503950
call RunVim([], [], "-g -S Xmouseshape.vim")
3951-
sleep 300m
3952-
call assert_equal(['busy', 'arrow'], readfile('Xmouseshapes'))
3951+
call WaitForAssert({-> assert_equal(['busy', 'arrow'], readfile('Xmouseshapes'))}, 300)
39533952

39543953
call delete('Xmouseshapes')
39553954
endfunc
@@ -3980,8 +3979,7 @@ func Test_mouse_shape_after_cancelling_gr()
39803979
END
39813980
call writefile(lines, 'Xmouseshape.vim', 'D')
39823981
call RunVim([], [], "-g -S Xmouseshape.vim")
3983-
sleep 300m
3984-
call assert_equal(['beam', 'arrow'], readfile('Xmouseshapes'))
3982+
call WaitForAssert({-> assert_equal(['beam', 'arrow'], readfile('Xmouseshapes'))}, 300)
39853983

39863984
call delete('Xmouseshapes')
39873985
endfunc

src/version.c

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

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
860,
707709
/**/
708710
859,
709711
/**/

0 commit comments

Comments
 (0)