summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_clientserver.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-22 14:24:00 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-22 14:24:00 +0100
commit18dc355395f2eac72ab83d984cacd26ae61c791f (patch)
tree6c1e7d7f7bae004eb34e0cf4251ccb5419bb10d7 /src/testdir/test_clientserver.vim
parent4b2ce1297e6e991bf6a674f9465d26d28e648de7 (diff)
patch 8.2.2031: some tests fail when run under valgrindv8.2.2031
Problem: Some tests fail when run under valgrind. Solution: Avoid timing problems.
Diffstat (limited to 'src/testdir/test_clientserver.vim')
-rw-r--r--src/testdir/test_clientserver.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testdir/test_clientserver.vim b/src/testdir/test_clientserver.vim
index 7a750556ab..6043184211 100644
--- a/src/testdir/test_clientserver.vim
+++ b/src/testdir/test_clientserver.vim
@@ -63,8 +63,9 @@ func Test_client_server()
call remote_send(name, ":gui -f\<CR>")
endif
" Wait for the server to be up and answering requests.
- sleep 100m
- call WaitForAssert({-> assert_true(name->remote_expr("v:version", "", 1) != "")})
+ " When using valgrind this can be very, very slow.
+ sleep 1
+ call WaitForAssert({-> assert_match('\d', name->remote_expr("v:version", "", 1))}, 10000)
call remote_send(name, ":let testvar = 'maybe'\<CR>")
call WaitForAssert({-> assert_equal('maybe', remote_expr(name, "testvar", "", 2))})