]> granicus.if.org Git - vim/commitdiff
patch 8.2.0750: netbeans test is a bit flaky v8.2.0750
authorBram Moolenaar <Bram@vim.org>
Wed, 13 May 2020 15:16:04 +0000 (17:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 13 May 2020 15:16:04 +0000 (17:16 +0200)
Problem:    Netbeans test is a bit flaky.
Solution:   Allow for standard sign to be defined.  Use WaitForAssert().

src/testdir/test_netbeans.vim
src/version.c

index a0606fcf068174991ea7f239cd8ecc3469d99ee1..7f1dab46dd16803ae0942536909fa24ef3258898 100644 (file)
@@ -339,8 +339,8 @@ func Nb_basic(port)
   let l = readfile('Xnetbeans')
   call assert_equal('send: 2:defineAnnoType!60 1 "s1" "x" "=>" blue none', l[-1])
   sleep 1m
-  call assert_equal([{'name': '1', 'texthl': 'NB_s1', 'text': '=>'}],
-        \ sign_getdefined())
+  call assert_equal({'name': '1', 'texthl': 'NB_s1', 'text': '=>'},
+        \ sign_getdefined()[0])
   let g:last += 3
 
   " defineAnnoType with a long color name
@@ -610,10 +610,9 @@ func Nb_basic(port)
   " detach
   call appendbufline(cmdbufnr, '$', 'detach_Test')
   call WaitFor('len(readfile("Xnetbeans")) >= (g:last + 6)')
-  let l = readfile('Xnetbeans')
-  call assert_equal('0:disconnect=91', l[-1])
+  call WaitForAssert({-> assert_equal('0:disconnect=91', readfile("Xnetbeans")[-1])})
 
-  " close the connection
+  " the connection was closed
   call assert_false(has("netbeans_enabled"))
 
   call delete("Xnetbeans")
index dae9357179b5aeb653f5388557989191a0c6cf0f..e78145ea7b62b00f061ba08a1be1170db0631af4 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    750,
 /**/
     749,
 /**/