patch 9.2.0085: tests: test_clientserver.vim is flaky

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>
This commit is contained in:
Christian Brabandt
2026-03-01 17:18:09 +00:00
parent 14eddc7d46
commit a5af4352cf
2 changed files with 6 additions and 3 deletions
+4 -3
View 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
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
85,
/**/
84,
/**/