]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0860: tests: mouse_shape tests use hard code sleep value v9.1.0860
authorYee Cheng Chin <ychin.git@gmail.com>
Tue, 12 Nov 2024 19:26:48 +0000 (20:26 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 12 Nov 2024 19:26:48 +0000 (20:26 +0100)
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>
src/testdir/test_normal.vim
src/version.c

index 32050ced96822dab45d13f193051206bec96fe0a..6dd3fac0cdcd70315624b044de5c14bd01741a4e 100644 (file)
@@ -3948,8 +3948,7 @@ func Test_mouse_shape_after_failed_change()
   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 @@ func Test_mouse_shape_after_cancelling_gr()
   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
index 8c2533c575e1f7ee6a876d18e743501267cef170..798598568922c4017a54b40a4641c2b521287c81 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    860,
 /**/
     859,
 /**/