]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0085: tests: test_clientserver.vim is flaky v9.2.0085
authorChristian Brabandt <cb@256bit.org>
Sun, 1 Mar 2026 17:18:09 +0000 (17:18 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 1 Mar 2026 17:18:09 +0000 (17:18 +0000)
Problem:  tests: test_client_server_stopinsert() is flaky.
Solution: Use remote_send() instead of remote_expr().

closes: #19539

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_clientserver.vim
src/version.c

index 5f2e8870a13590585a8e5e75c466cf8de19949c4..8aa9428f2a345e1ed20e6d0c63919f7d6bd51ac7 100644 (file)
@@ -228,12 +228,13 @@ func Test_client_server_stopinsert()
   " When using valgrind it takes much longer.
   call WaitForAssert({-> assert_match(name, serverlist())})
 
-  call remote_expr(name, 'execute("stopinsert")')
+  call remote_send(name, "\<C-\>\<C-N>")
 
+  " Wait for the mode to change to Normal ('n')
   call WaitForAssert({-> assert_equal('n', name->remote_expr("mode(1)"))})
-  cal WaitForAssert({-> assert_equal('13', name->remote_expr("col('.')"))})
+  call WaitForAssert({-> assert_equal('13', name->remote_expr("col('.')"))})
 
-  eval name->remote_send(":qa!\<CR>")
+  call remote_send(name, "\<C-\>\<C-N>:qa!\<CR>")
   try
     call WaitForAssert({-> assert_equal("dead", job_status(job))})
   finally
index 1aeec3e40b895999512ff3f3f831279576184456..d001aa53fdfb36bf9fec55bcf54dd5e93b281003 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    85,
 /**/
     84,
 /**/