mirror of
https://github.com/vim/vim.git
synced 2026-05-28 00:21:37 +02:00
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:
@@ -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
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
85,
|
||||
/**/
|
||||
84,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user