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>
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim
index 32050ce..6dd3fac 100644
--- a/src/testdir/test_normal.vim
+++ b/src/testdir/test_normal.vim
@@ -3948,8 +3948,7 @@
END
call writefile(lines, 'Xmouseshape.vim', 'D')
call RunVim([], [], "-g -S Xmouseshape.vim")
- sleep 300m
- call assert_equal(['busy', 'arrow'], readfile('Xmouseshapes'))
+ call WaitForAssert({-> assert_equal(['busy', 'arrow'], readfile('Xmouseshapes'))}, 300)
call delete('Xmouseshapes')
endfunc
@@ -3980,8 +3979,7 @@
END
call writefile(lines, 'Xmouseshape.vim', 'D')
call RunVim([], [], "-g -S Xmouseshape.vim")
- sleep 300m
- call assert_equal(['beam', 'arrow'], readfile('Xmouseshapes'))
+ call WaitForAssert({-> assert_equal(['beam', 'arrow'], readfile('Xmouseshapes'))}, 300)
call delete('Xmouseshapes')
endfunc
diff --git a/src/version.c b/src/version.c
index 8c2533c..7985985 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 860,
+/**/
859,
/**/
858,